- Información general
- Comience ya
- Conceptos
- Using UiPath CLI
- Guías prácticas
- CI/CD recipes
- Referencia de los comandos
- Información general
- Códigos de salida
- Global options
- uip codedagent
- uip docsai
- add-test-data-entity
- add-test-data-queue
- add-test-data-variation
- analyze
- build
- Crear proyecto
- diff
- find-activities
- get-analyzer-rules
- get-default-activity-xaml
- get-errors
- get-manual-test-cases
- get-manual-test-steps
- get-versions
- get-workflow-example
- indicate-application
- indicate-element
- inspect-package
- install-data-fabric-entities
- install-or-update-packages
- list-data-fabric-entities
- list-workflow-examples
- pack
- restore
- run-file
- search-templates
- start-studio
- stop-execution
- uia
- uip traces
- Migración
- Reference & support
UiPath CLI user guide
uip agent pack bundles a local agent project into a .uis file. A .uis is a plain ZIP archive of the project tree; it is the transport format accepted by Studio Web (uip agent push) and the input to the Orchestrator publishing flow (uip agent publish).
Before packing, the command:
- Validates the project structure (
agent.json,entry-points.json,project.uiproj, resource tree). - Runs the Studio Web schema validation pass (unless
--skip-schema-validationis set). Any non-fatal warnings are surfaced; any fatal issue aborts the pack with aSchema validation failederror.
The produced archive excludes .agent-builder/ (local-development scaffolding that Studio Web regenerates on import).
Synopsis
uip agent pack [path] [-d <dir>] [-n <name>] [--skip-schema-validation]
uip agent pack [path] [-d <dir>] [-n <name>] [--skip-schema-validation]
All uip agent pack invocations honor the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract.
Argumentos
[path](optional, default.) — Path to the agent project directory.
Opciones
| Marca | Predeterminado | Propósito |
|---|---|---|
-d, --destination <dir> | . | Destination directory for the .uis file. Created if it does not exist. |
-n, --name <name> | agent metadata.name → project dir basename | Package name. The output file is <name>.uis. |
--skip-schema-validation | off | Skip the Studio Web schema validation pass. Useful for inspecting work-in-progress projects that would be rejected by the live API; do not use in a release pipeline. |
Ejemplos
# Pack the current directory into ./my-agent.uis
uip agent pack
# Pack a specific project into ./dist/my-agent.uis
uip agent pack ./my-agent -d ./dist
# Override the archive name
uip agent pack ./my-agent -d ./dist --name invoice-agent-v1
# Skip schema validation to pack a work-in-progress project
uip agent pack ./my-agent --skip-schema-validation
# Pack the current directory into ./my-agent.uis
uip agent pack
# Pack a specific project into ./dist/my-agent.uis
uip agent pack ./my-agent -d ./dist
# Override the archive name
uip agent pack ./my-agent -d ./dist --name invoice-agent-v1
# Skip schema validation to pack a work-in-progress project
uip agent pack ./my-agent --skip-schema-validation
Data shape (--output json)
{
"Code": "AgentPack",
"Data": {
"Status": "Agent packed successfully",
"Name": "my-agent",
"Output": "/abs/path/dist/my-agent.uis"
}
}
{
"Code": "AgentPack",
"Data": {
"Status": "Agent packed successfully",
"Name": "my-agent",
"Output": "/abs/path/dist/my-agent.uis"
}
}
Warnings emitted during schema validation are logged separately (Warning entries) and do not appear in the success Data. Fatal schema errors fail the command before the archive is written.
Relationship to publish
uip agent publish runs its own pack/migrate/repack pipeline internally; you do not need to run pack first if your next step is publish. Use pack when you want:
- A
.uisyou can hand-inspect (rename to.zipand unzip). - A
.uisyou plan to push to Studio Web viauip agent push <file.uis>. - A deterministic local archive as an artifact in a CI job.
Related
uip agent validate— run the migration pipeline before packing.uip agent publish— pack and push the package to Orchestrator in one step.uip agent push— import a packed project into Studio Web.