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.

Flow pack de UIP Maestro

Sintaxis y opciones para "uip maestro Flow Pack", que empaqueta un directorio de proyecto de flujo en un archivo ".nupkg" para la publicación de Orchestrator.

uip maestro flow pack empaqueta un directorio de proyecto de Flow en un archivo .nupkg listo para publicar en Orchestrator.

Sinopsis​

uip maestro flow pack <projectPath> <outputPath> [-n <name>] [-v <version>] [--author <author>] [--description <text>] [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] [--release-notes <text>] [--project-url <url>]
uip maestro flow pack <projectPath> <outputPath> [-n <name>] [-v <version>] [--author <author>] [--description <text>] [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] [--release-notes <text>] [--project-url <url>]

Prevalece las opciones globales. Los códigos de salida siguen el contrato estándar.

Argumentos​

  • <projectPath> (required) — path to the Flow project directory. The directory must contain the .flow file named after the package (see Behavior).
  • <outputPath> (obligatorio) : directorio de salida donde se escribirá .nupkg . Creado si no existe.

Opciones​

  • -n, --name <name> — nombre del paquete. El valor predeterminado es el nombre de la carpeta del proyecto.
  • -v, --version <version> : versión del paquete. El valor predeterminado es 1.0.0.

Opciones de metadatos del paquete (compartidas entre los comandos del paquete)​

OpciónDescripción
--author <author>Autor del paquete.
--description <text>Descripción del paquete.
--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.
--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.

Comportamiento​

  • The command packs <name>.flow from the project directory, where <name> is the package name (--name, or the project folder name). Characters other than letters, numbers, _, and - are replaced with _ in the file name. The command fails when that file is missing.
  • The package name can contain only letters, numbers, dots (.), underscores (_), and hyphens (-).
  • Before packing, the command runs the same checks as uip maestro flow validate, including the designer's rules, without the --strict-bindings and --strict-expressions gates. If the .flow file has errors, the command refuses to pack and lists each error. Fix the errors in the designer, or run uip maestro flow validate <project-path> for the full list.
  • Packing happens in a temporary staging folder, so the source project is not modified.

Ejemplos​

# Pack with defaults (name = folder, version = 1.0.0)
uip maestro flow pack ./invoice-flow ./dist

# Pack with an explicit version
uip maestro flow pack ./invoice-flow ./dist --version 1.2.0
# Pack with defaults (name = folder, version = 1.0.0)
uip maestro flow pack ./invoice-flow ./dist

# Pack with an explicit version
uip maestro flow pack ./invoice-flow ./dist --version 1.2.0

Forma de datos (--json de salida)​

{
  "Code": "FlowPack",
  "Data": {
    "Package": "invoice-flow@1.2.0",
    "Output": "/workspace/dist/invoice-flow.flow.Flow.1.2.0.nupkg"
  }
}
{
  "Code": "FlowPack",
  "Data": {
    "Package": "invoice-flow@1.2.0",
    "Output": "/workspace/dist/invoice-flow.flow.Flow.1.2.0.nupkg"
  }
}

Package is <name>@<version>. Output is the path of the written .nupkg file.

On failure, the command exits with code 1 and returns Result: "Failure", Message: "Flow pack failed", and the reason 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