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.

Konfiguration

Konfigurationsreferenz für UiPath CLI, die Umgebungsvariablen, Befehlszeilen-Flags und Vorrangregeln abdeckt.

UiPath CLI wird über Befehlszeilen-Flags, Umgebungsvariablen und eine lokale Konfigurationsdatei konfiguriert. Flags sind für einen einzelnen Aufruf vorgesehen; Umgebungsvariablen eignen sich für CI-Ausführungen und Container; Die Konfigurationsdatei enthält Standardeinstellungen, die über Aufrufe auf einer Maschine hinweg bestehen bleiben (Ausgabeformat, Protokollebene und die Versions-/Updatekanal-Richtlinie).

Konfigurationsquellen​

In der Reihenfolge des Rangfolge, von spezifisch zu allgemein:

  1. Befehlszeilen-Flag – --tenant, --authority, --client-id, --output, --log-level usw. Flags haben Vorrang vor jeder anderen Quelle.
  2. Umgebungsvariable – von der CLI zur Laufzeit gelesene Variablen (siehe Umgebungsvariablen). Die CLI liest jede Variable nur an den dokumentierten Punkten; Es gibt keine implizite Regel „Jedes Flag hat ein env-var-Gegenstück“.
  3. Konfigurationsdatei – .uipath/config.json, wurde erkannt, indem Sie vom aktuellen Verzeichnis zu $HOME gehen und auf ~/.uipath/config.json zurückgreifen. Über uip config get|set|clear verwaltet; enthält output, logLevel, interactive, updateChannel und version. Die vollständige Schlüsselreferenz finden Sie unter UIP-Konfiguration .
  4. Hartcodierte Standardeinstellungen – https://cloud.uipath.com für die Stelle, json für das Ausgabeformat, info für Protokollebene, Seitengröße 50 für Listenverben.

Umgebungsvariablen​

Umgebungsvariablen sind der Hauptmechanismus zum Konfigurieren der CLI in CI-Ausführungen, Containern und Entwicklerkonfigurationen pro Shell. Legen Sie sie in der Umgebung des Ausführungsvorgangs (oder in einer .env -Datei, die von Ihrem Ausführungsvorgang verbraucht wird) fest, und die CLI liest sie an den unten dokumentierten Punkten.

VariableLesen vonZweck
UIPATH_URLuip login, jeder authentifizierte BefehlÜberschreiben Sie die Basis-URL der Identitätsautorität. Die Standardeinstellung ist https://cloud.uipath.com.
UIPATH_CLI_ENABLE_ENV_AUTHJeder authentifizierte BefehlSet to literal true to switch the CLI from the file-based credentials flow to environment-variable auth. With this gate on, the CLI reads the access token + tenant + organization from the variables below and bypasses the ~/.uipath/ credentials folder entirely. Refer to Authentication — Flow 4.
UIPATH_CLI_AUTH_TOKENNur env-var-AuthentifizierungsflowAccess token: a JWT, or a Personal Access Token. For a JWT, the server URL is derived from the token's iss claim. For a Personal Access Token, which is not a JWT, set UIPATH_URL to the UiPath base URL.
UIPATH_CLI_ORGANIZATION_NAMENur env-var-AuthentifizierungsflowOrganisations-Slug.
UIPATH_CLI_ORGANIZATION_IDNur env-var-AuthentifizierungsflowUUID der Organisation.
UIPATH_CLI_TENANT_NAMENur env-var-AuthentifizierungsflowMandanten-Slug.
UIPATH_CLI_TENANT_IDNur env-var-AuthentifizierungsflowMandanten-UUID.
UIPATH_TELEMETRY_DISABLEDTelemetrie-InitLegen Sie 1 oder true fest, um die anonyme Nutzungstelemetrie zu deaktivieren.
UIPATH_AI_CONNECTION_STRINGTelemetrie-InitÜberschreiben Sie die Application Insights-Verbindungszeichenfolge.
HTTP_PROXY / http_proxyNetzwerkebeneHTTP-Proxy für ausgehende Anforderungen (Host und Tools).
UIPATH_PROXY_INTEGRATED_AUTHNetzwerkebeneSet to literal true to authenticate the proxy CONNECT tunnel with Windows Integrated Authentication — Kerberos/Negotiate or NTLM single sign-on. Without the opt-in the CLI supports no-auth and Basic proxies only.
UIPATH_PROXY_USER / UIPATH_PROXY_PASSWORD / UIPATH_PROXY_DOMAINNetzwerkebeneAuthenticate the proxy as a specific account rather than the logged-in user. Credentials may also be supplied as user:pass@ in the proxy URL. Supplying them excludes ambient SSO, so a wrong password fails rather than silently falling back.
HTTPS_PROXY / https_proxyNetzwerkebeneHTTPS-Proxy.
NO_PROXY / no_proxyNetzwerkebeneProxy-Umgehungsliste.
UIP_DEFAULT_OUTPUTAusgabeformatierungÜberschreibt die integrierte Standardeinstellung json, wenn --output nicht übergeben wird. Akzeptiert table, json, yaml, plain oder markdown; Ein explizites --output in der Befehlszeile gewinnt immer.
UIP_TIMINGSZeitinstrumentierungSet to 1 or true to print a per-invocation timing line to stderr (total, startup, command, http/httpCalls, flush). Refer to Global options — Command timings.
UIP_TIMINGS_FILEZeitinstrumentierungPath of a file to append the timing line to instead of stderr. Read only when UIP_TIMINGS is on.
UIPATH_CLI_TOOLS_DIRSTool discovery and installFor a host application that embeds the CLI: a list of node_modules/@uipath directories, separated by ; on Windows and : on macOS/Linux. When set, only these directories are searched for tools, the first entry is where uip tools install writes, and the CLI does not update itself.
NO_COLORTerminalausgabeJeder Wert erzwingt das Ausschalten der Farbe in --output table und überschreibt die automatische Tty-Erkennung.
FORCE_COLORTerminalausgabeErzwingt das Einschalten der Farbe, auch wenn „stdout“ kein Tty ist (z. B. Pipeline-Ausgabe, die Sie immer noch färben möchten). Vor der Tty-Erkennung geprüft, neben NO_COLOR.

Übergeben Sie nicht geheime Werte, die zwischen Bereitstellungen variieren (Mandant, Organisation, Ordnername), als Variablen in Ihrem CI-Ausführungsmodell und verweisen Sie in uip -Befehlen darauf:

env:
  UIPATH_TENANT: Production
  UIPATH_FOLDER: Shared
script:
  - uip login --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant "$UIPATH_TENANT"
  - uip or folders list --all --path "$UIPATH_FOLDER"
env:
  UIPATH_TENANT: Production
  UIPATH_FOLDER: Shared
script:
  - uip login --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant "$UIPATH_TENANT"
  - uip or folders list --all --path "$UIPATH_FOLDER"
Warnung:

Kein implizites Lesen von UIPATH_CLIENT_ID / UIPATH_CLIENT_SECRET

Setting UIPATH_CLIENT_ID and UIPATH_CLIENT_SECRET in the environment alone does not authenticate the CLI. Pass them explicitly using the env.VAR_NAME prefix on --client-id / --client-secret, or use the env-var auth flow above for token-based authentication. Refer to Authentication.

Wo jede Einstellung live sein kann​

EinstellungMarkierenUmgebungsvarStandard
Stelle/Basis-URL--authority <url>UIPATH_URLhttps://cloud.uipath.com
ID des externen App-Clients--client-id <id>– (festgelegt über Flag mit dem Präfix env.VAR_NAME)keine
Geheimer Clientschlüssel der externen App--client-secret <secret>– (festgelegt über Flag mit dem Präfix env.VAR_NAME)keine
Mandant--tenant <name> (oder Sitzung)–aus der Sitzung
Ordner--folder-path / --folder-key pro Befehl–keine
Ausgabeformat--output <format>–json
Ausgabefilter--output-filter <jmespath>–keine
Protokollebene--log-level <level>–info
Protokolldatei--log-file <path>–keine
npm-Registrierung für Tools––.npmrc @uipath:registry (wenn festgelegt), andernfalls npm-Standard
Telemetrie–UIPATH_TELEMETRY_DISABLED=1enabled

Einstellungen ohne eine env-var-Spalte können nur pro Befehl über Flags festgelegt werden.

Beispielkonfigurationen​

Ausführung mit minimaler CI (alles über env)​

env:
  UIPATH_URL: https://cloud.uipath.com
  UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
  UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
  UIPATH_TENANT: Production
  UIPATH_TELEMETRY_DISABLED: "1"

steps:
  - run: npm install -g @uipath/cli
  - run: uip tools install @uipath/orchestrator-tool
  - run: uip tools install @uipath/solution-tool
  - run: |
      uip login \
        --client-id env.UIPATH_CLIENT_ID \
        --client-secret env.UIPATH_CLIENT_SECRET \
        --tenant "$UIPATH_TENANT"
  - run: uip or folders list
env:
  UIPATH_URL: https://cloud.uipath.com
  UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
  UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
  UIPATH_TENANT: Production
  UIPATH_TELEMETRY_DISABLED: "1"

steps:
  - run: npm install -g @uipath/cli
  - run: uip tools install @uipath/orchestrator-tool
  - run: uip tools install @uipath/solution-tool
  - run: |
      uip login \
        --client-id env.UIPATH_CLIENT_ID \
        --client-secret env.UIPATH_CLIENT_SECRET \
        --tenant "$UIPATH_TENANT"
  - run: uip or folders list

Container mit einem vorab ausgegebenen Token (env-var-Authentifizierungsflow)​

export UIPATH_CLI_ENABLE_ENV_AUTH=true
export UIPATH_CLI_AUTH_TOKEN="$BUILD_TOKEN"
export UIPATH_CLI_ORGANIZATION_NAME=contoso
export UIPATH_CLI_ORGANIZATION_ID="$ORG_UUID"
export UIPATH_CLI_TENANT_NAME=Default
export UIPATH_CLI_TENANT_ID="$TENANT_UUID"

uip or folders list
export UIPATH_CLI_ENABLE_ENV_AUTH=true
export UIPATH_CLI_AUTH_TOKEN="$BUILD_TOKEN"
export UIPATH_CLI_ORGANIZATION_NAME=contoso
export UIPATH_CLI_ORGANIZATION_ID="$ORG_UUID"
export UIPATH_CLI_TENANT_NAME=Default
export UIPATH_CLI_TENANT_ID="$TENANT_UUID"

uip or folders list

Kein uip login Schritt, keine Datei geschrieben. Jeder Befehl authentifiziert sich über die env vars.

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