UiPath Documentation
uipath-cli
latest
false
Guía del usuario de UiPath CLI
Importante :
Este contenido se ha traducido mediante traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

paquete de aplicación codificada uip

Sintaxis y opciones para el `paquete de aplicación codificada uip`, que empaqueta una aplicación codificada creada en un archivo `.nupkg` para su publicación.

uip codedapp pack packages a built coded app into a .nupkg archive ready for publication. It reads the <dist> directory, applies the supplied package metadata, and writes the archive to --output-dir (defaults to ./.uipath). Use --dry-run to check the package configuration and preview the output path without writing anything to disk. This is a local, unauthenticated packaging step — it accepts no login/auth-override flags; those only apply to push/pull/publish/deploy.

Sinopsis​

uip codedapp pack <dist> [options]
uip codedapp pack <dist> [options]
  • <dist> — path to the dist folder containing the built application. The folder must contain index.html at its root; only static builds are supported.

Package ID​

The package ID is derived from --name: the name is lowercased, spaces and underscores become hyphens, other characters outside a-z, 0-9, and - are removed, repeated hyphens collapse to one, and leading or trailing hyphens are trimmed. For example, --name "My App" produces the package ID my-app. When the name changes, the CLI prints a warning that names the sanitized value. The display title keeps the name as typed unless you pass --display-name.

When --name is omitted in an interactive terminal, the command prompts for it. In a non-interactive run, a missing name fails the command.

Opciones​

MarcaDescripción
-n, --name <name>Package name. The package ID is derived from it (refer to Package ID).
--display-name <name>Título de la aplicación legible por humanos que se muestra en UiPath. El valor predeterminado es --name como se escribe.
-v, --version <version>Versión del paquete. Predeterminado: 1.0.0.
--output-dir <dir>Directorio de salida. Predeterminado: ./.uipath.
--author <author>Autor del paquete. Predeterminado: UiPath Developer.
--description <desc>Descripción del paquete.
--main-file <file>Archivo de entrada principal. Predeterminado: index.html.
--content-type <type>Tipo de contenido: webapp, library o process. Predeterminado: webapp.
--repository-url <url>URL del repositorio de origen, registrada en el paquete para su trazabilidad.
--repository-commit <sha>Hash de confirmación del repositorio de origen, registrado para su trazabilidad.
--repository-branch <branch>Rama del repositorio de origen.
--repository-type <type>Tipo de repositorio de origen. El valor predeterminado es git cuando se establece --repository-url.
--release-notes <text>Notas de la versión del paquete.
--project-url <url>URL de la idea de Automation Hub.
--dry-runShow what would be packaged without creating the package or writing any file.

Ejemplos​

# Default — writes ./.uipath/myapp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"

# Custom output directory and author
uip codedapp pack ./dist \
    --name "MyApp" --version "2.0.0" \
    --output-dir ./packages \
    --author "Contoso Ltd."

# Separate display title — package id stays my-app
uip codedapp pack ./dist --name "my-app" --display-name "My App" --version "1.0.0"

# Check the package configuration without writing anything to disk
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --dry-run

# Write the .nupkg into a directory other than ./.uipath
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --output-dir ./out
# Default — writes ./.uipath/myapp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"

# Custom output directory and author
uip codedapp pack ./dist \
    --name "MyApp" --version "2.0.0" \
    --output-dir ./packages \
    --author "Contoso Ltd."

# Separate display title — package id stays my-app
uip codedapp pack ./dist --name "my-app" --display-name "My App" --version "1.0.0"

# Check the package configuration without writing anything to disk
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --dry-run

# Write the .nupkg into a directory other than ./.uipath
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --output-dir ./out

Forma de datos (--json de salida)​

{
  "Code": "PackCompleted",
  "Data": {
    "Message": "Package created successfully.",
    "Package": "myapp@1.0.0",
    "Output": ".uipath/myapp.1.0.0.nupkg"
  }
}
{
  "Code": "PackCompleted",
  "Data": {
    "Message": "Package created successfully.",
    "Package": "myapp@1.0.0",
    "Output": ".uipath/myapp.1.0.0.nupkg"
  }
}

A dry run (--dry-run) returns a different code and message, and Output shows the path the package would take:

{
  "Code": "PackDryRunCompleted",
  "Data": {
    "DryRun": true,
    "Message": "Dry run - no package created.",
    "Package": "myapp@1.0.0",
    "Output": ".uipath/myapp.1.0.0.nupkg"
  }
}
{
  "Code": "PackDryRunCompleted",
  "Data": {
    "DryRun": true,
    "Message": "Dry run - no package created.",
    "Package": "myapp@1.0.0",
    "Output": ".uipath/myapp.1.0.0.nupkg"
  }
}

A failed pack returns Result: "Failure" with Message: "Pack failed" and the cause in Instructions.

Ver también​

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado