- Überblick
- Erste Schritte
- Konzepte
- Verwenden der UiPath CLI
- Anleitungen
- CI/CD-Rezepte
- Befehlsreferenz
- Überblick
- Exitcodes
- Globale Optionen
- UIP-codierter Agent
- UIP-Coded
- UIP-Kontextgrundlage
- UIP-Dokumentation
- UIP-Funktion
- UIP-Leitplanken
- uip llm-configuration
- uip llm-gateway
- UIP Maestro-Erstellung
- UIP Maestro-Registrierung
- UIP-Modellhub
- Aktivitäten finden
- get-standard-xaml
- Analysieren
- Analyseregeln-Liste
- Erstellen
- Bereinigung
- data-fabric-entities installieren
- data-fabric-entities-Liste
- Dateien differenzieren
- Get-Library-Object-Repository
- Get-Object-Repository
- Init
- Instanzenliste
- Packen
- Pakete überprüfen
- Pakete installieren
- Paketversionen
- Veröffentlichen
- Remote
- restore
- Ausführen, Debuggen & Ausführung enthält
- Einstellungen
- Studio-Start
- Vorlagensuche
- Testdaten-Add-Entität
- Testdaten-Warteschlange hinzufügen
- Testdaten-Hinzufügevariante
- TM
- UIA
- Überprüfen
- Workflow-Beispiele abrufen
- Workflow-Beispiele
- UIP-Aufgaben
- Anhang
- benutzerdefiniertes Feld
- Defects
- Ausführungen
- Exportaufträge
- Migration
- Objektbeschriftung
- Packen
- perf-szenario
- Perf-Szenario-Lastgruppen
- Ausführungsdaten für perf-szenario
- Perf-Szenario-Bericht
- Projekt
- Projektberechtigungen
- Aufforderungen
- Melden
- Anforderungen
- Ergebnis
- Ausführen
- Zeitpläne
- Testfallprotokoll
- Testfälle
- Testsätze
- Testschrittprotokoll
- Benutzer
- Warten
- UIP-Ablaufverfolgungen
- Feedback zu UIP-Ablaufverfolgungen
- Migration
- Referenz und Support
UIP-codiertes App-Paket
Syntax und Optionen für „uip codedapppack“, das eine erstellte codierte App zur Veröffentlichung in ein „.nupkg“-Archiv verpackt.
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.
Zusammenfassung
uip codedapp pack <dist> [options]
uip codedapp pack <dist> [options]
<dist>— path to the dist folder containing the built application. The folder must containindex.htmlat 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.
Optionen
| Markieren | Beschreibung |
|---|---|
-n, --name <name> | Package name. The package ID is derived from it (refer to Package ID). |
--display-name <name> | Für Menschen lesbarer App-Titel, der in UiPath angezeigt wird. Die Standardeinstellung ist --name wie eingegeben. |
-v, --version <version> | Paketversion Standard: 1.0.0. |
--output-dir <dir> | Ausgabeverzeichnis. Standard: ./.uipath. |
--author <author> | Paketautor. Standard: UiPath Developer. |
--description <desc> | Paketbeschreibung. |
--main-file <file> | Haupteintragsdatei. Standard: index.html. |
--content-type <type> | Inhaltstyp: webapp, library oder process. Standard: webapp. |
--repository-url <url> | Quell-Repository-URL, im Paket zur Rückverfolgbarkeit aufgezeichnet. |
--repository-commit <sha> | Quell-Repository-Commit-Hash, der für die Rückverfolgbarkeit aufgezeichnet wurde. |
--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. |
--dry-run | Show what would be packaged without creating the package or writing any file. |
Beispiele
# 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
Datenform (--output json)
{
"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.
Zugehörig
- uip codedapp push – senden Sie die Quelle an Studio Web, bevor Sie sie packen.
- uip codedapp publish – Laden Sie die resultierende
.nupkgin UiPath hoch.