- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- UIP Maestro のオーサリング
- UIP Maestro レジストリ
- uip model-hub
- uip ont
- アクティビティ検索
- アクティビティ get-default-xaml
- 分析
- アナライザー - ルールのリスト
- 開発
- クリーンアップ
- data-fabric-entities をインストールする
- data-fabric-entities リスト
- ファイル差分
- get-library-object-repository
- オブジェクト リポジトリを取得
- Init
- インスタンス リスト
- パッケージ化
- パッケージ検査
- パッケージのインストール
- パッケージ バージョン
- パブリッシュ
- リモート
- 元に戻す
- 実行、デバッグ、実行
- 設定
- Studio での起動
- テンプレートの検索
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 検証
- workflow-examples get
- ワークフロー - 例のリスト
- uip resources
- UIP タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
- トラブルシューティング
トラブルシューティング
UiPath CLI の一般的なエラー、その原因、および修正方法 (PATH の問題、認証エラー、ツールのインストールの問題など)。
よくあるエラー、その原因、および修正方法。各セクションには、最初にエラー メッセージまたは症状がリストされ、次にそれが何を意味し、何をすべきかがリストされます。
インストール
uip: npm install -g の後にコマンドが見つからない
npm グローバルプレフィックスが PATHにありません。見つけてください。
npm config get prefix
npm config get prefix
macOS / Linuxでは、返されたプレフィックス+ /bin をシェルプロファイルに追加します(~/.zshrc、 ~/.bashrc)。Windowsでは、 %APPDATA%\npm デフォルトで PATH になっているはずです—新しい端末を開いてアップデートを取得します。
詳しくは、「 UiPath CLI をインストールする — トラブルシューティング」をご覧ください。
EACCES: インストール中に権限が拒否されました
システム所有のnpmプレフィックスに書き込もうとしています。sudoは使用しないでください。代わりに、ユーザーローカルのプレフィックスを設定します。
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
export PATH="$HOME/.npm-global/bin:$PATH"
npm install -g @uipath/cli
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
export PATH="$HOME/.npm-global/bin:$PATH"
npm install -g @uipath/cli
認証
すべてのコマンドで AuthenticationError (終了コード 2) が発生する
有効なセッションがありません。いずれも:
uip loginを実行して対話型セッションを開始する- CI で外部アプリケーションの資格情報を渡します。
uip login --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant "$UIPATH_TENANT"、または - トークンが事前発行されているコンテナーの場合:
UIPATH_CLI_ENABLE_ENV_AUTH=true変数にUIPATH_CLI_AUTH_TOKEN/UIPATH_CLI_ORGANIZATION_*/UIPATH_CLI_TENANT_*を加えた値を設定します。
チェックのステータス: uip login status
「 認証」をご覧ください。
トークンの期限切れまたは uip login ステータスの期限切れ
更新トークンは有効でなくなります。通常は、何週間も操作されなかったか、管理者が強制的にサインアウトした後です。uip loginを再実行します。
env-var 認証の場合、トークンは uipに対して不透明です。発行側から UIPATH_CLI_AUTH_TOKEN を回転させます。
uip login 後にテナントが選択されない
テナントを選択せずにログインが完了しました。ピッカーがキャンセルされたか、 --tenant 渡されたが値がアクセス可能なテナントと一致しませんでした。uip login --interactiveでリトライし、リストから選択するか、uip login --tenant <exact-name>します。
UIPATH_CLIENT_ID / UIPATH_CLIENT_SECRET環境変数は無視されているようです
彼らはそうです。UiPath CLI では、これらの値に対する暗黙的な env-var の読み取りが削除されました。明示的に渡す:
uip login --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant "$UIPATH_TENANT"
uip login --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant "$UIPATH_TENANT"
プレフィックス env. は、実行時に環境から解決するよう uip に指示します。コマンド ラインでは値を公開しません。
Warning: Environment-variable authentication is on
The full warning on stderr reads:
Environment-variable authentication is on (UIPATH_CLI_ENABLE_ENV_AUTH=true), so commands sign in with the UIPATH_CLI_* variables, not profile "<name>". Unset UIPATH_CLI_ENABLE_ENV_AUTH to use it.
Environment-variable authentication is on (UIPATH_CLI_ENABLE_ENV_AUTH=true), so commands sign in with the UIPATH_CLI_* variables, not profile "<name>". Unset UIPATH_CLI_ENABLE_ENV_AUTH to use it.
UIPATH_CLI_ENABLE_ENV_AUTH=true is set, so the --profile you passed is not used. uip login prints the same warning, with the login saved here in place of the profile, because the login it saves is not used either. The command still runs with the credentials from the UIPATH_CLI_* variables.
To use the profile or the saved login, unset UIPATH_CLI_ENABLE_ENV_AUTH. To keep environment-variable authentication, remove --profile from the command. See Authentication — environment-variable auth.
ツール
ツール '' がインストールされていません — 自動インストールを実行しようとしています
情報提供 — ホストは初回使用時にツールをダウンロードしています。それ以降の呼び出しでは、インストール済みコピーが再利用されます。CIでこのログメッセージを回避するには、プリインストールします。
uip tools install @uipath/orchestrator-tool @uipath/solution-tool
uip tools install @uipath/orchestrator-tool @uipath/solution-tool
ツールの自動インストールの制御を参照してください。
'' の自動インストールに失敗しました
ツールのダウンロードに失敗しました。一般的な原因:
- ネットワークなし — 接続またはプロキシ設定を確認します。
- 企業プロキシはnpmをブロック します—
HTTPS_PROXY=http://proxy.example.com:8080を設定します。 - npm レジストリが解決できない — 到達可能な場所
npm config get registryポイントを確認します。
手動でリトライする: uip tools install <verb>
アップグレード後にツール コマンドが uip --help から消える
ツールのバージョンがホストと歩調を合わせていません。修正:
uip tools update
uip tools update
これにより、インストールされたすべてのツールがホストのMAJOR内の最新バージョンになります。マイナーライン。「バージョン管理と安定性」をご覧ください。
ValidationError: package '' is not on the whitelist
@uipath/されていないツールをインストールしようとしました。1.x はホワイトリストに登録されたセットのみをサポートします。他社製のツールはまだ利用できません。
The project at has its own @uipath/cli
You ran uip from a project folder that has its own @uipath/cli in node_modules, and the uip on your PATH is another install. Only the project's own CLI installs, updates, or removes the project's tools. A tool auto-install, uip tools install, uip tools update, and uip tools uninstall fail with ErrorCode: configuration_error and exit code 1, and change nothing.
Run the command with the project's CLI:
npx uip tools update
npx uip tools update
Alternatively, run your uip from a folder outside the project. To see which install each tool loads from, check the Path field of uip tools list.
出力とフィルター処理
ValidationError: invalid --output-filter (exit 3)
JMESPath 式を解析できませんでした。CLI は、コマンドを実行する前に解析時に検証します — フィルタを修正して再試行してください。JMESPath 参照: jmespath.org.
よくある落とし穴: --output-filter "Jobs[0].Key" は機能しますが、 --output-filter "Jobs[-1].Key" は機能しません — JMESPath [-1] はサポートされていません。代わりに Data.Jobs | [-1:][0].Key を使用するか、 jqを使用して後処理します。
テーブルを期待していましたが、JSONを取得しました
既定の出力は JSON です。読みやすいビューの --output table を渡します。詳しくは、「出力形式」をご覧ください。
パイプライン ステップで JSON の解析に失敗する — JSON 以外のテキストが stdout に表示される
ログ、進行状況バー、および一部のエラー メッセージは、stdout ではなく stderr に送られます。JSON 以外のものが stdout にある場合は、両方のストリームが同じファイルにリダイレクトされている可能性があります。それらを個別にリダイレクトします。
uip or folders list > folders.json 2> uip.log
uip or folders list > folders.json 2> uip.log
コマンドと終了コード
コマンドは0で終了しますが、失敗することを期待していました
Success Resultは、ペイロードが空の場合でも終了コード 0 にマップされます。たとえば、uip or folders list --all --name Nonexistent は Data: []で0を終了します。ペイロード形状の分岐:
COUNT=$(uip or folders list --limit 50 --all --name Foo --output-filter "length(@)" --output plain)
[[ "$COUNT" -eq 0 ]] && { echo "no match"; exit 1; }
COUNT=$(uip or folders list --limit 50 --all --name Foo --output-filter "length(@)" --output plain)
[[ "$COUNT" -eq 0 ]] && { echo "no match"; exit 1; }
unknown option '--top' or '--take'
uip list commands limit their results with --limit, not with --top or --take. On a command that has --limit, the Instructions field of the error names it:
uip or folders list --limit 5
uip or folders list --limit 5
The command fails with ValidationError and exit code 3.
unknown option — Several options arrived as one argument
The shell passed several options to uip as one argument, for example "--limit 5 --output json". This happens when the options are in a quoted shell variable, or in any variable in zsh, which does not split a variable into words. The command fails with ValidationError and exit code 3.
Pass each option and each value as a separate argument. In bash and zsh, keep the options in an array:
FLAGS=(--limit 5 --output json)
uip or folders list "${FLAGS[@]}"
FLAGS=(--limit 5 --output json)
uip or folders list "${FLAGS[@]}"
Confirmation required: this will … and cannot be undone
The command changes or deletes something and needs an explicit confirmation. The CLI never prompts for it. The command fails with Result: "Failure", ErrorCode: "confirmation_required", and exit code 1, and changes nothing.
Run the command again with the option that Instructions names, usually --yes. In a script, branch on ErrorCode to tell a missing confirmation from a failed operation.
uip tm wait exits with 1 or 4 — what happened?
Exit code 1 with Code: "ExecutionTestsFailed" or Code: "ExecutionCancelled" means the execution reached a terminal state, and a test failed or the run was cancelled. Exit code 4 means --timeout elapsed first: the envelope reads Result: "TimeoutError" with a Timed out after <n>s waiting for execution message. Exit code 2 is an authentication or permission failure, as on every other command. See uip tm wait exit codes.
uip tm testsets run は成功しましたが、テストは失敗します
設計上正しい。tm testsets run は、Orchestrator が実行を受け入れる 0 終了します。判定は後で行われます。3段階のイディオムを連鎖させます。
EXEC_ID=$(uip tm testsets run --test-set-key "$TESTSET" --output-filter "ExecutionId" --output plain)
uip tm wait --execution-id "$EXEC_ID" --timeout 1800
FAILED=$(uip tm report get --execution-id "$EXEC_ID" --output-filter "Failed" --output plain)
[[ "$FAILED" -gt 0 ]] && { echo "$FAILED tests failed"; exit 1; }
EXEC_ID=$(uip tm testsets run --test-set-key "$TESTSET" --output-filter "ExecutionId" --output plain)
uip tm wait --execution-id "$EXEC_ID" --timeout 1800
FAILED=$(uip tm report get --execution-id "$EXEC_ID" --output-filter "Failed" --output plain)
[[ "$FAILED" -gt 0 ]] && { echo "$FAILED tests failed"; exit 1; }
uip tm wait itself exits 1 when a test failed or the run was cancelled, so a script that runs under set -e stops at that line. uip tm testsets run --wait launches and waits in one command, with the same exit codes.
「 スクリプティング パターン」、「 uip tm testset」、および「uip tm execution」をご覧ください。
構成
環境変数の変更は反映されません
長期実行プロセス (エージェント、監視対象のスクリプト) は、起動時に 1 回、環境を読み取ります。環境変数を変更した後、プロセスを再起動してください。ワンショット コマンドの場合、新しい uip 呼び出しは常に現在の環境を読み取ります。
優先順位を確認します: CLI フラグ>環境変数>組み込みデフォルトです。「設定」をご覧ください。
シェル補完
タブ補完が完了しない
uip completion後に新しいターミナルを開いて、シェルの rc ファイルが再ソースされるようにします。それでも見つからない場合は、 uip completion --print を実行して、 uip がインストールされていると思われるブロックを確認します。 ~/.zshrc / ~/.bashrc / $PROFILEと比較してください。
uip or packages upload --package-name は名前を提案しません
フラグ値の動的補完は zsh のみであり、PATHでjqする必要があります。jq をインストールするか、zsh に切り替えます。static サブコマンド + オプション名補完は、関係なく 4 つのシェルすべてで機能します。
シェルと CI の統合
CI の手順が uip login または uip skils インストール時にハングする
コマンドは対話型プロンプトを待機しています。必要なフラグを渡します。
uip login --tenant <name>(テナント ピッカーをスキップ)uip skills install --agent <name>(エージェント ピッカーをスキップ)
どのプロンプトが対話型かわからない場合は、非 TTY コンテキストでローカル uip --log-level debug … (リダイレクト stdout) で失敗したコマンドを実行し、表示されたプロンプトを調べます。
uip orjobs start はすぐに戻ります—私はそれを待ってほしかったです
既定では、 jobs start は実行を受け入れて終了します。--wait-for-completion追加:
uip or jobs start <process-key> --wait-for-completion --timeout 600
uip or jobs start <process-key> --wait-for-completion --timeout 600
ここでは見つけられなかったもの
実行しているコマンドのリファレンス ページを確認してください — それぞれに独自の終了コードと例のセクションがあります。次に、リリースノートで同様の症状を検索します。一致するものがない場合は、収集します。
uip --versionuip tools list- 正確なコマンドと完全な stderr / stdout
- JSON エンベロープの
Resultフィールド
…UiPath CLI チームに問題を提起します。
参照
- Exit codes — what each code means.
- スクリプト パターン — リトライ、ポーリング、ストリームの分離、べき等パイプライン。
- 認証 — 4 つの認証フローの詳細です。
- UiPath CLI をインストールする — トラブルシューティング — インストール固有のエラー。
- インストール
- uip: npm install -g の後にコマンドが見つからない
- EACCES: インストール中に権限が拒否されました
- 認証
- すべてのコマンドで AuthenticationError (終了コード 2) が発生する
- トークンの期限切れまたは uip login ステータスの期限切れ
- uip login 後にテナントが選択されない
- UIPATH_CLIENT_ID / UIPATH_CLIENT_SECRET環境変数は無視されているようです
- Warning: Environment-variable authentication is on
- ツール
- ツール '
' がインストールされていません — 自動インストールを実行しようとしています - '
' の自動インストールに失敗しました - アップグレード後にツール コマンドが uip --help から消える
- ValidationError: package '
' is not on the whitelist - The project at
has its own @uipath/cli - 出力とフィルター処理
- ValidationError: invalid --output-filter (exit 3)
- テーブルを期待していましたが、JSONを取得しました
- パイプライン ステップで JSON の解析に失敗する — JSON 以外のテキストが stdout に表示される
- コマンドと終了コード
- コマンドは0で終了しますが、失敗することを期待していました
- unknown option '--top' or '--take'
- unknown option — Several options arrived as one argument
- Confirmation required: this will … and cannot be undone
- uip tm wait exits with 1 or 4 — what happened?
- uip tm testsets run は成功しましたが、テストは失敗します
- 構成
- 環境変数の変更は反映されません
- シェル補完
- タブ補完が完了しない
- uip or packages upload --package-name
は名前を提案しません - シェルと CI の統合
- CI の手順が uip login または uip skils インストール時にハングする
- uip orjobs start はすぐに戻ります—私はそれを待ってほしかったです
- ここでは見つけられなかったもの
- 参照