UiPath Documentation
uipath-cli
2026.10
false
UiPath CLI ユーザー ガイド

uip tools

「uip ツール」の構文とオプション - UiPath CLI を拡張する npm ベースのツールをインストール、更新、削除します。

uip tools は、CLI を拡張するインストール可能な ツール を管理します。概念については、 ツール (プラグイン) を参照してください。

CI ランナーでの自動インストールを制御する方法については、「 ツールの自動インストールの制御」を参照してください。

概要​

uip tools list
uip tools search [<query>]
uip tools install <package-spec> [--force]
uip tools update [--name <package>]
uip tools uninstall [<package>] [--all] [--force]
uip tools list
uip tools search [<query>]
uip tools install <package-spec> [--force]
uip tools update [--name <package>]
uip tools uninstall [<package>] [--all] [--force]

uip toolsすべてのサブコマンドは、グローバルオプション (--output、 --output-filter、 --log-level、 --log-file) を優先します。終了コードは 標準コントラクトに従います。

uip tools list​

CLI と共に現在インストールされているツールを一覧表示します。

引数​

設定はありません。

オプション​

設定はありません。

uip tools list --output table
uip tools list --output table

データシェイプ (--output json)​

{
  "Code": "ToolList",
  "Data": [
    {
      "Name": "orchestrator-tool",
      "Version": "1.2.3",
      "Description": "UiPath Orchestrator Tool",
      "CommandPrefix": "or",
      "Status": "ok",
      "Path": "/usr/local/lib/node_modules/@uipath/orchestrator-tool/dist/tool.js"
    },
    {
      "Name": "agent-tool",
      "Version": "1.1.7",
      "Description": "UiPath Agent Tool",
      "CommandPrefix": "agent",
      "Status": "needs update",
      "Path": "/usr/local/lib/node_modules/@uipath/agent-tool/dist/tool.js"
    }
  ]
}
{
  "Code": "ToolList",
  "Data": [
    {
      "Name": "orchestrator-tool",
      "Version": "1.2.3",
      "Description": "UiPath Orchestrator Tool",
      "CommandPrefix": "or",
      "Status": "ok",
      "Path": "/usr/local/lib/node_modules/@uipath/orchestrator-tool/dist/tool.js"
    },
    {
      "Name": "agent-tool",
      "Version": "1.1.7",
      "Description": "UiPath Agent Tool",
      "CommandPrefix": "agent",
      "Status": "needs update",
      "Path": "/usr/local/lib/node_modules/@uipath/agent-tool/dist/tool.js"
    }
  ]
}
フィールド説明
Nameツール名。
Versionインストールされたバージョン。
Descriptionツールの説明
CommandPrefix入力する最上位のエイリアスです (例: Orchestrator の場合は or )。これを使用して、実行される uip <prefix> … を確認します。
Statusok インストールされたバージョンが実行中の CLI の MAJOR 上にある場合。MINORライン。needs update そのラインから外れているとき。
PathThe entry file the tool loads from. In a project folder with its own @uipath/cli, the path points into that folder's node_modules/@uipath.

CLI は、ツールのコマンドの 1 つが次回実行されたときに、 needs update ツールをその行のバージョンに置き換えます。対話型の表では、 needs update 行が強調表示されます。

フリー ズされた構成では、 Status はピンでツールに対して frozen され、別のバージョンではツールに対して off freeze されます。フリーズでリストされないツールも実行されないため、 off freeze です。表の off freeze 行は赤で表示されます。

UiPath のツール カタログでインストール可能なツールを検索します。結果は、許可リストに登録されている @uipath/ ツール (明示的なインストールが必要な rpa-legacyを含む) に絞り込まれます。他社製パッケージは返されません。

引数​

  • <query> (任意) — 部分文字列をパッケージ名および説明と照合します。追加しない場合は、許可リストに登録されたすべてのツールが一覧表示されます。

オプション​

設定はありません。

uip tools search orchestrator
uip tools search orchestrator

データシェイプ (--output json)​

{
  "Code": "SearchResult",
  "Data": [
    {
      "Name": "@uipath/orchestrator-tool",
      "LatestVersion": "1.2.3",
      "Description": "Manage UiPath Orchestrator resources from the CLI",
      "AvailableVersions": ["1.2.3", "1.2.2", "1.2.1"]
    }
  ]
}
{
  "Code": "SearchResult",
  "Data": [
    {
      "Name": "@uipath/orchestrator-tool",
      "LatestVersion": "1.2.3",
      "Description": "Manage UiPath Orchestrator resources from the CLI",
      "AvailableVersions": ["1.2.3", "1.2.2", "1.2.1"]
    }
  ]
}

検索は、@uipath スコープに設定されている npm レジストリから読み取ります (通常は、既定の npm 構成、または .npmrcで設定されたオーバーライドされたレジストリを使用してhttps://registry.npmjs.org/)。結果はクライアント側で許可リストに照らしてフィルター処理されるため、許可リストにない @uipath/ パッケージはすべて除外されます。

uip tools install​

許可リストに登録されているツールを npm レジストリからインストールします。CLI は、@uipath スコープのレジストリ npm 独自の構成セット (.npmrcのスコープ付き @uipath:registry エントリ 、それ以外の場合は npm のデフォルトレジストリ) からバージョンを解決します。

引数​

  • <package-spec> (必須) — インストールするツールです。次のいずれか:
    • コマンドエイリアス: or、 solution、 tm、 is、 vss、 df、...
    • 短い名前: orchestrator-tool、 solution-tool、...
    • 完全な npm 名: @uipath/orchestrator-tool、 @uipath/solution-tool、...
    • 明示的なバージョン: orchestrator-tool@1.0.2、 @uipath/orchestrator-tool@1.0.2。@ の後の値は有効な semver 文字列 (例:1.0.2 または 1.0.0-preview.1) — @beta などのベア チャネル名は、 ValidationErrorで拒否されます。

オプション​

  • --force: 構成がフリーズしたら、フリーズがないバージョンをインストールし、そのピンを versions ブロックに書き込みます。バージョンがない場合は、CLI 行とチャネルに最新バージョンをインストールします。CLI 行外のバージョンは、 の有--force無にかかわらず を終了3で失敗します。

フリーズした構成では、--forceなしのuip tools installは、リストされているツールのみをそのピンにインストールします。ピンから外れたバージョン、またはフリーズがリストされていないツールは拒否されます。

# by alias — simplest
uip tools install or

# by short name
uip tools install orchestrator-tool

# by full npm name
uip tools install @uipath/orchestrator-tool

# specific version
uip tools install orchestrator-tool@1.0.2

# exact preview build
uip tools install orchestrator-tool@1.0.0-preview.1

# preview channel — switch the channel, then install normally
uip config set updateChannel preview
uip tools install orchestrator-tool
# by alias — simplest
uip tools install or

# by short name
uip tools install orchestrator-tool

# by full npm name
uip tools install @uipath/orchestrator-tool

# specific version
uip tools install orchestrator-tool@1.0.2

# exact preview build
uip tools install orchestrator-tool@1.0.0-preview.1

# preview channel — switch the channel, then install normally
uip config set updateChannel preview
uip tools install orchestrator-tool

バージョンの解決方法​

  • 明示的な semver バージョン (例:@1.0.2 または @1.0.0-preview.1) の場合、そのバージョンはそのまま使用されます。@beta のような npm-dist-tag の短縮形はありません — @ の後の値は semver として解析しないと、コマンドは ValidationErrorで失敗します。
  • バージョンがない場合、ホストは CLI の更新チャネル ( デフォルトではstable、または uip config set updateChannel <channel>を介して preview/dev ) と現在の MAJOR に対して解決します。MINOR 行 — そのため、stable CLI 1.0.xは、最新の一致する安定ツール 1.0.*をインストールします。これにより、ホストとツールのプロトコル互換性が維持されます。「 バージョン管理と安定性 」および「 uip 構成」をご覧ください。

インストールターゲット:ツールはCLIのnpmパッケージの隣にインストールされます—CLIがグローバルインストールの場合はグローバルに、CLIがプロジェクトスコープのインストールの場合はローカル。スコープ フラグを渡しません。npm root -gを実行して、マシン上のグローバル インストール パスを見つけます。

許可リストへの適用: <package-spec> 、許可リストに登録されている @uipath/ パッケージのいずれか (または rpa-legacy) に解決する必要があります。その他の値は ValidationError と終了コード 3 で失敗します。サードパーティ ツールは 1.x ではサポートされていません。

データシェイプ (--output json)​

{
  "Code": "Message",
  "Data": { "Message": "Successfully installed @uipath/orchestrator-tool@1.2.3" }
}
{
  "Code": "Message",
  "Data": { "Message": "Successfully installed @uipath/orchestrator-tool@1.2.3" }
}

失敗​

CLI の回線でバージョンを解決できない場合、障害エンベロープには原因を示す ErrorCode が表示されます。npm の構成を読み取ることができる場合、メッセージはクエリされたレジストリにも名前を付けます。

ErrorCode原因何をすべきか
authentication_requiredレジストリが資格情報を拒否しました。.npmrcでそのレジストリの資格情報を修正してから、再実行します。
network_errorレジストリにアクセスできませんでした。.npmrcでネットワーク アクセス、プロキシまたはレジストリの構成を確認してから、再実行します。
not_foundレジストリには、CLI の MAJOR にツールのバージョンがありません。MINORライン。uip tools install <tool>@<version>を使用してこの行のビルドをインストールし、uip updateを実行して CLI をツールを発行する行に移動するか、@uipath スコープをツールを発行するレジストリに向けます。
server_errorレジストリは、CLI が読み取れなかったメタデータを返しました。再実行します。問題が解決しない場合は、プロキシまたはミラーによって応答が書き換えられているかどうかを確認します。

uip tools update​

インストールされている 1 つまたは複数のツールを互換性のある最新バージョンに更新します。

引数​

設定はありません。

オプション​

  • --name <package> — 単一のツールを更新します。エイリアス、短い名前、または完全な npm 名を受け入れます。--nameしない場合、インストールされているすべてのツールが更新されます。
重要:

uip tools updateには--versionフラグはなく、--nameのみが登録されます。すべてのツールは、CLI の MAJOR の最新バージョンに更新されます。MINORライン。uip config freeze には、正確なバージョンのツールが保持されています。

# update every installed tool to the latest version within the CLI's major.minor line
uip tools update

# update just the Orchestrator tool
uip tools update --name or
# update every installed tool to the latest version within the CLI's major.minor line
uip tools update

# update just the Orchestrator tool
uip tools update --name or

データシェイプ (--output json)​

{
  "Code": "UpdateResult",
  "Data": [
    {
      "Name": "orchestrator-tool",
      "Status": "updated",
      "From": "1.2.2",
      "To": "1.2.3"
    },
    {
      "Name": "agent-tool",
      "Status": "up-to-date",
      "From": "1.2.3",
      "To": "1.2.3"
    }
  ]
}
{
  "Code": "UpdateResult",
  "Data": [
    {
      "Name": "orchestrator-tool",
      "Status": "updated",
      "From": "1.2.2",
      "To": "1.2.3"
    },
    {
      "Name": "agent-tool",
      "Status": "up-to-date",
      "From": "1.2.3",
      "To": "1.2.3"
    }
  ]
}

Status が updated か up-to-dateです。更新に失敗したツールがある場合、コマンドは失敗したツールの数を示す Failure エンベロープを出力し、コード 1で終了します。ツールごとのエラーを確認するには、 --log-level debug で実行します。

フリーズした設定では、 uip tools update ピン留めされた各ツールをピン上または下に配置します。インストールされたツールは versions.toolsにありませんが、拒否されず、何も変更されません。メッセージ名 uip tools install <tool>@<version> --force、 uip config freeze、 uip tools uninstall <tool> --forceです。

uip tools uninstall​

インストール済みのツールを 1 つ、またはインストール済みのすべてのツールを一度に削除します。

引数​

  • [package-name] (任意) — エイリアス、短縮名、または完全な NPM 名です。--allと相互に排他的です。引数または --all のいずれか 1 つのみを指定します。両方を省略するか、両方を渡すと、 ValidationErrorになります。

オプション​

  • --all — インストールされているすべてのツールをアンインストールします。[package-name]と相互に排他的です。
  • --force — 構成がフリーズしたら、ツールをアンインストールしてピンを削除します。インストールされていないツールは、ピンのみが取り外されています。--allを使用すると、すべてのピンが 1 回の書き込みで削除されます。フリーズした構成では、 は--forceなしですべてのツールを拒否uip tools uninstall。
# uninstall a single tool
uip tools uninstall orchestrator
uip tools uninstall @uipath/solution-tool

# uninstall every installed tool
uip tools uninstall --all
# uninstall a single tool
uip tools uninstall orchestrator
uip tools uninstall @uipath/solution-tool

# uninstall every installed tool
uip tools uninstall --all

データシェイプ (--output json)​

1 つのツールをアンインストールすると、 Code: "Message"が出力されます。

{
  "Code": "Message",
  "Data": { "Message": "Successfully uninstalled @uipath/orchestrator-tool" }
}
{
  "Code": "Message",
  "Data": { "Message": "Successfully uninstalled @uipath/orchestrator-tool" }
}

--all は、ツールごとに 1 行の Code: "UninstallResult" を出力します。

{
  "Code": "UninstallResult",
  "Data": [
    { "Name": "orchestrator-tool", "Status": "uninstalled" },
    { "Name": "agent-tool", "Status": "uninstalled" }
  ]
}
{
  "Code": "UninstallResult",
  "Data": [
    { "Name": "orchestrator-tool", "Status": "uninstalled" },
    { "Name": "agent-tool", "Status": "uninstalled" }
  ]
}

Status は、CLI 自体に付属するツールのskippeduninstalled、または failedです。スキップされた行と失敗した行には、 Error フィールドがあります。--allパスでツールのアンインストールに失敗した場合、コマンドはコード 1 で終了します。ツールごとの完全な内訳は引き続き出力されます。

アンインストール後に uip or … を呼び出すと、自動インストールがブロックされていない限り (ネットワーク アクセスのないランナーなど)、次回の使用時に Orchestrator ツールが再度自動インストールされます。これを回避するには、明示的にインストールしてください。

Projects with their own CLI​

In a project folder that has its own @uipath/cli in node_modules, a uip from another install does not change the project's tools. The following fail with ErrorCode: "configuration_error" and exit code 1, and change nothing:

  • uip tools install
  • uip tools update
  • uip tools uninstall
  • A tool auto-install

The project's own CLI (npx uip ...) is not affected, and neither is a uip that runs outside the project folder. uip tools list and the tool commands still work.

終了コード​

  • 0 — 成功。
  • 1 — 失敗(インストール、更新、アンインストール、またはツールレベルのエラー)。複数のツールを使用する update では、少なくとも 1 つが失敗していました。
  • 3 — install および updateの検証エラー (不明なエイリアス、許可リストに登録されていないパッケージ、無効なバージョン文字列)。

uninstall独自の引数検証エラー (パッケージ名が見つからない、またはパッケージ名と組み合わさった--all) は、応答本文で Result: "ValidationError" を報告するにもかかわらず、3ではなく 1 を終了します。この場合、このケースを他の失敗と区別する必要がある場合は、JSON 本文で終了コードではなく Result/ErrorCode で分岐します。

表全体については 、「終了コード 」を参照してください。

参照​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得