UiPath Documentation
uipath-cli
latest
false
UiPath-CLI-Benutzerhandbuch
Wichtig :
Dieser Inhalt wurde maschinell übersetzt. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

UIP Maestro Flow Pack

Syntax und Optionen für „uip Maestro Flow Pack“, das ein Flow-Projektverzeichnis in eine „.nupkg“-Veröffentlichung für den Orchestrator verpackt.

uip maestro flow pack verpackt ein Flow-Projektverzeichnis in eine .nupkg -Datei, die bereit für die Veröffentlichung im Orchestrator ist.

Zusammenfassung​

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>]

Beachten Sie globale Optionen. Austrittscodes folgen dem Standardvertrag.

Argumente​

  • <projectPath> (required) — path to the Flow project directory. The directory must contain a .flow file. Refer to Behavior.
  • <outputPath> (erforderlich) – Ausgabeverzeichnis, in das .nupkg geschrieben wird. Wird erstellt, wenn er nicht vorhanden ist.

Optionen​

  • -n, --name <name> — package ID, used as given. Defaults to <project folder name>.flow.Flow. It does not select the .flow file.
  • -v, --version <version> – Paketversion. Die Standardeinstellung ist 1.0.0.

Paketmetadatenoptionen (gemeinsam für Paketbefehle genutzt)​

OptionBeschreibung
--author <author>Paketautor.
--description <text>Paketbeschreibung.
--repository-url <url>Quell-Repository-URL, im Paket zur Rückverfolgbarkeit aufgezeichnet.
--repository-commit <sha>Quell-Repository-Commit-Hash.
--repository-branch <branch>Verzweigung des Quell-Repositorys.
--repository-type <type>Typ des Quell-Repositorys. Standardmäßig auf git, wenn --repository-url festgelegt ist.
--release-notes <text>Versionshinweise für das Paket.
--project-url <url>URL der Automation Hub-Idee.

Verhalten​

  • The command packs the same .flow file that uip maestro flow validate resolves for the project directory: the MainFile from project.uiproj, then <Name>.flow, then the only .flow file in the project. --name does not change which file is packed.
  • When the project has several .flow files and none is the main file, the command fails with Result: "ValidationError", ErrorCode: invalid_argument, and exit code 3. Instructions lists the files. Set MainFile in project.uiproj to the file to pack.
  • Without --name, the package ID is the project folder name followed by .flow.Flow. A folder name that is not a valid package name is sanitized first, for example My Flow becomes My.Flow.
  • A --name value can contain only letters, numbers, dots (.), underscores (_), and hyphens (-).
  • Vor dem Packen führt der Befehl dieselben Prüfungen wie uip maestro flow validate aus, einschließlich der Regeln des Designers, ohne die Gates --strict-bindings und --strict-expressions . Wenn die Datei .flow Fehler enthält, verweigert der Befehl das Packen und listet jeden Fehler auf. Beheben Sie die Fehler im Designer, oder führen Sie uip maestro flow validate <project-path> für die vollständige Liste aus.
  • Das Packen erfolgt in einem temporären Staging-Ordner, sodass das Quellprojekt nicht geändert wird.

Beispiele​

# 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 an explicit package ID
uip maestro flow pack ./invoice-flow ./dist --name Finance.Invoices --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

# Pack with an explicit package ID
uip maestro flow pack ./invoice-flow ./dist --name Finance.Invoices --version 1.2.0

Datenform (--output json)​

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

Package is <package ID>@<version>, with the package ID as written in the package. Output is the path of the written .nupkg file.

Bei einem Fehler wird der Befehl mit Code 1 beendet und gibt Result: "Failure", Message: "Flow pack failed" und den Grund in Instructions zurück.

Siehe auch​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben