- Vue d'ensemble (Overview)
- Démarrer
- Concepts
- Utilisation de la UiPath CLI
- Guides pratiques
- Revenus CI/CD
- Référence de commande
- Vue d'ensemble (Overview)
- Codes de sortie
- Options globales
- agent codé uip
- encodeur UIP
- uip ancrage dans le contexte
- UiPath Docsai
- Fonction UiP
- garde-fous UiP
- configuration llm uip
- uip llm-passerelle
- Création uip maestro
- Registre Maestro uip
- uip model-hub
- Tâches (Jobs)
- Dossiers
- Processus
- ROI du processus
- Paquets
- Machines
- Utilisateurs
- Rôles
- Licences
- Flux
- Pièces jointes (Attachments)
- Sessions
- Calendriers
- magasins d'informations d’identification
- journaux-audit
- paramètres
- Actifs
- Compartiments
- Compartiment-fichiers
- Bibliothèques
- Files d'attente (Queues)
- ROI de la file d'attente
- éléments de la file d'attente
- Déclencheurs (Triggers)
- Webhooks
- Activités - Rechercher
- activités get-Default-xaml
- Analyser
- liste règles-analyseurs
- Construire
- Nettoyage
- Installation de entités data-fabrics
- liste des entités data-fabrics
- Diff de fichiers
- Get-Library-Object-Repository
- Récupérer le référentiel d'objets
- Init
- liste des instances
- Créer un package
- Vérification des paquets
- Installation des paquets
- Versions de paquets
- Publier
- Distant
- restore
- exécuter, déboguer et amp; Exécution
- paramètres
- Début de Studio
- Recherche de modèles
- entité ajoutée aux données de test
- Ajouter une file d'attente de données de test
- variation d'ajout de données de test
- TM
- UIA
- Valider
- exemples de workflow - Obtenir
- liste d'exemples de workflow
- tâches UIP
- pièce jointe
- Champ personnalisé
- Défauts (Defects)
- Exécutions
- exporter-tâches
- Migration
- Libellé Objet
- Créer un package
- scénarios-perf
- groupes-de-charge-scénarios-perf
- données d’exécution de perf-scenario
- rapport de scénarios de performances
- Projet
- autorisations-projet
- Invites
- Rapport
- Prérequis
- Résultat
- Exécuter
- Planifications (Schedules)
- Journaux de cas de test
- Cas de test
- Ensembles de tests
- Journal des étapes de test
- Utilisateur (User)
- Attendre
- Traçages UIP
- Commentaires sur les traces UIP
- Migration
- Référence et assistance
pack d'applications codées uip
Syntaxe et options de `uip codedapp pack`, qui empaquete une application codée intégrée dans une archive `.nupkg` à des fins de publication.
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.
Synthèse
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.
Options
| Drapeau | Description |
|---|---|
-n, --name <name> | Package name. The package ID is derived from it (refer to Package ID). |
--display-name <name> | Titre d’application lisible par un humain affiché dans UiPath. La valeur par défaut est --name tel que saisi. |
-v, --version <version> | Version du package. Par défaut: 1.0.0. |
--output-dir <dir> | Répertoire de sortie. Par défaut: ./.uipath. |
--author <author> | Auteur du package. Par défaut: UiPath Developer. |
--description <desc> | Description du package. |
--main-file <file> | Fichier d'entrée principal. Par défaut: index.html. |
--content-type <type> | Type de contenu: webapp, library ou process. Par défaut: webapp. |
--repository-url <url> | URL du référentiel source, enregistrée dans le package à des fins de traçabilité. |
--repository-commit <sha> | Hachage de validation du référentiel source, enregistré à des fins de traçabilité. |
--repository-branch <branch> | Branche du référentiel source. |
--repository-type <type> | Type du référentiel source. La valeur par défaut est git lorsque --repository-url est défini. |
--release-notes <text> | Notes de publication du package. |
--project-url <url> | URL de l'idée Automation Hub. |
--dry-run | Show what would be packaged without creating the package or writing any file. |
Exemples
# 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
Format des données (--sortie 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.
Associé
- uip codedapp — expédiez la source à Studio Web avant de l'empaqueter.
- publication d'application codée uip — télécharger le
.nupkgrésultant dans UiPath.