UiPath Documentation
uipath-cli
latest
false
Guide de l'utilisateur de UiPath CLI
Important :
Ce contenu a été traduit à l'aide d'une traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Push d'application codée uip

Syntaxe et options de `uip codedapp push`, qui charge la source locale dans un projet d'application codée Studio Web.

uip codedapp push uploads local source to a Studio Web project. It uploads the build output in --build-dir (default dist) and the project's source files from the project root, after an optional resource import. Use it to ship local edits back to a project that was originally pulled from Studio Web.

Synthèse​

uip codedapp push [options]
uip codedapp push [options]

Options​

DrapeauDescription
--project-id <id>ID de projet WebApp. Lit à partir des métadonnées du projet dans le répertoire de travail si omis.
--build-dir <dir>Créer un répertoire de sortie. Par défaut: dist.
--ignore-resourcesIgnorer l’importation des ressources référencées.
--allow-large-filesAllow pushing files between 2 MB and 10 MB without a confirmation prompt. Required in non-interactive runs when any file is 2 MB or larger.
-v, --version <version>Définissez une version de code explicite (par exemple, 2.0.0).
--verboseAfficher les journaux de progression détaillés.
--base-url <url>URL de base UiPath (remplacer l'authentification).
--org-id <id>ID de l’organisation (remplissage d’authentification).
--tenant-id <id>ID de locataire (remplissage d’authentification).
--access-token <token>Jeton d’accès (remplacer l’authentification).

Excluding files​

push reads exclusion patterns from .gitignore and .uipignore in the project root. .uipignore uses the same syntax as .gitignore, and its patterns take precedence when the two files disagree. The following are always excluded, with or without an ignore file:

  • node_modules/ et .uipath/
  • .gitignore, .uipignore, .gitkeep
  • .env files, including .env.local, .env.*.local, .env.development, .env.production, .env.test, and .env.example
  • Any other file or folder whose name starts with a dot

File checks​

Before uploading, push checks every file it would send:

Vérifier (Check)Résultat
File extension not in the allowed set of web-related typesPush blocked. The disallowed files are listed.
File of 10 MB or largerPush blocked.
File of 2 MB or larger, below 10 MBInteractive: confirmation prompt. Non-interactive: push blocked unless you pass --allow-large-files.
action-schema.json present and invalidPush blocked.

Exemples​

# Push from the default ./dist build directory
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001

# Custom build directory and explicit version
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001 \
    --build-dir build \
    --version 2.0.0

# Push files between 2 MB and 10 MB without a prompt (CI)
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001     --allow-large-files

# Skip resource imports
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001 \
    --ignore-resources
# Push from the default ./dist build directory
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001

# Custom build directory and explicit version
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001 \
    --build-dir build \
    --version 2.0.0

# Push files between 2 MB and 10 MB without a prompt (CI)
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001     --allow-large-files

# Skip resource imports
uip codedapp push --project-id a1b2c3d4-0000-0000-0000-000000000001 \
    --ignore-resources

Format des données (--sortie json)​

{
  "Code": "PushCompleted",
  "Data": { "message": "Push completed successfully." }
}
{
  "Code": "PushCompleted",
  "Data": { "message": "Push completed successfully." }
}

A failed push returns Result: "Failure" with Message: "Push failed" and the cause in Instructions.

Voir également​

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour