- スタート アップ ガイド
- コード化されたAppsを使用する
- コード化されたAppsを構築してデプロイする
- サンプルのコード化されたApps
- よくある質問
- Studio Web のコード化された Apps
- コード化されたアクション Apps
コード化されたアプリを構築してデプロイする
UiPath でコード化されたアプリを構築してデプロイする: 開始する前の必要条件、IDE でのアプリの作成方法、Orchestrator フォルダーへのパブリッシュとデプロイの方法。
コード化されたアプリは、開発者が独自の IDE で記述した Web アプリケーションとして始まり、ユーザーが UiPath の URL から開くアプリとして終わります。このページでは、その過程と、UiPath で実行されるデプロイ手順について説明します。
このプロセスには 4 つの段階があります。
- IDE でアプリ ロジックを定義する
- セキュリティで保護された UiPath への接続を確立する
- Orchestrator にアプリをデプロイする
- UiPath エコシステム内でアプリにアクセスする
はじめる前に
Automation Cloud (専有型) および Test Cloud (専有型) では、専有型の運用環境が 2026 年 9 月 24 日付の Apps リリースにアップグレードされるまでは、pack、publish、deploy、push の手順に UiPath CLI バージョン 1.202.0 を使用します。新しいバージョンの CLI には、現在専用環境で実行されている Apps のバージョンに対応していない重大な変更が含まれています。専用の運用環境を 2026 年 9 月 24 日の Apps リリースにアップグレードした後は、新しいバージョンの UiPath CLI を使用できます。
トラブルシューティングについては、「 Automation Cloud (専有型) で uip codedapp コマンドが失敗するのはなぜですか?」をご覧ください。
次の条件が整っていることを確認します。
- Node.js 20.x 以降と npm を使用したローカル開発環境で、アプリの構築と UiPath ツールのインストールに使用されます。nodejs.org からインストーラーをダウンロードします。このインストーラーには npm が含まれます。既にインストールされているものを確認するには、
node -vを実行してnpm -v。 codedappツールがインストールされている UiPath CLIインストールの手順については、 『UiPath CLI ガイド』をご覧ください。- 組織に登録されている外部アプリケーションの外部アプリ ID。アプリはこのキーを使用してユーザーをサインインさせ、ユーザーに代わって UiPath サービスを呼び出します。コード化されたアプリはブラウザーで実行され、アプリ シークレットを保存できないため、ユーザー スコープを持つ 非機密アプリケーション として登録してください。外部アプリケーションを登録するには、『Automation Cloud 管理ガイド』の「 外部アプリケーションを追加する 」をご覧ください。
- 対象の Orchestrator フォルダーにパッケージをパブリッシュし、アプリをデプロイする権限。
アプリを構築する
開発者は、React、Vue、Angular などの選択したフレームワークで、Web アプリケーションを構築するのと同じ方法でアプリを構築します。UiPath は、このワークフローに次の 2 つの機能を追加します。
- 組織へのコネクションプロジェクトのルートにある構成ファイルにより、組織、テナント、外部アプリ ID を識別します。UiPath TypeScript SDK はこの構成を読み取ることで、アプリは Orchestrator、アセット、ストレージ バケット、プロセスなどの UiPath サービスを呼び出すことができます。
- ローカル開発の設定。プロジェクトのビルド ツール用の UiPath プラグインは、アプリを開発者のマシンで実行している間に同じ構成を提供するため、アプリをデプロイする前に実際のテナントに対してテストできます。
どちらもプロジェクトごとに 1 回限りの設定です。構成ファイル、ビルド ツール プラグイン、アプリをパッケージ化する前に必要な調整など、開発者向けの完全な設定については、SDK ドキュメントの「 コード化された Apps の利用を開始する 」をご覧ください。
アプリをデプロイする
デプロイは 2 つのパートに分かれて行われます。開発者がアプリをパッケージ化してパブリッシュしてから、そのパッケージを Orchestrator フォルダーにデプロイします。
アプリをパッケージ化してパブリッシュする
コード化されたアプリは、オートメーションで使用されるパッケージ形式と同じ .nupkg パッケージとして Orchestrator にパブリッシュされます。
-
アプリを構築します。
npm run buildnpm run build -
ビルド出力をパッケージ化します。
uip codedapp pack dist -n <appName> --version 1.0.0uip codedapp pack dist -n <appName> --version 1.0.0 -
UiPath 組織にサインインします。
uip loginuip login -
Publish the package to a tenant feed, a personal workspace feed, or a folder feed. To choose the feed, see Package feeds:
uip codedapp publishuip codedapp publish -
アプリをデプロイします。
uip codedapp deployuip codedapp deploy
各コマンドの完全な引数のリストについては、『UiPath CLI ガイド』の「uip codedapp」をご覧ください。
Orchestrator からアプリをパブリッシュしてデプロイする
アプリの NuGet パッケージ (.nupkg ファイル) は、Orchestrator から直接パブリッシュおよびデプロイできます。NuGet パッケージは、引き続き UiPath CLI で uip codedapp pack コマンドを使用して作成する必要があります。
- Orchestrator で、アプリをパブリッシュするパッケージ フィードを開きます。
- テナント フィード: テナント > [パッケージ] に移動します。
- 個人用ワークスペース フィード: 個人用ワークスペースを選択し、[ オートメーション ] > [ マイ パッケージ] に移動します。
- フォルダー フィード: 独自のパッケージ フィードを持つフォルダーを選択し、[ オートメーション ] > [ フォルダー パッケージ] に移動します。
- [ アップロード ] を選択して、
.nupkgファイルをアップロードします。これにより、選択したフィードにアプリがパブリッシュされます。詳しい手順については、「 パッケージを管理する」をご覧ください。 - アプリをデプロイするフォルダーに移動し、オートメーション > Appsに移動します。パブリッシュしたフィードによって、アプリをデプロイできる場所が決まります。
- テナント フィード: 任意のフォルダーです。個人用ワークスペースと、専用のパッケージ フィードを持つフォルダーを除く。
- 個人用ワークスペース フィード: 個人用ワークスペースのみです。
- フォルダー フィード: フィードが属するフォルダーのみ。
- [ アプリをデプロイ] を選択し、アプリとそのバージョンを選択します。詳しい手順については、「 アプリを管理する」をご覧ください。
アプリがデプロイされると、ポップアップにアプリの URL が表示されます。
Studio Web からアプリをデプロイする
アプリが Studio Web ソリューション内にコード化されたアプリ プロジェクトとして構築されている場合、そのアプリは単独でではなく、そのソリューションと一緒にパッケージ化およびデプロイされます。コード化されたアプリのバージョンは、依存するワークフロー、エージェント、リソースと歩調を合わせています。
-
アプリをローカルでビルドしてから、Studio Web プロジェクトにプッシュします。
uip codedapp push --project-id <project-id>uip codedapp push --project-id <project-id> -
Studio Web でソリューションを開き、[ デプロイ] を選択します。
-
パッケージ バージョンを設定し、個人用ワークスペースにパッケージ化するか共有ワークスペースにパッケージ化するかを選択します。デプロイに名前を付け、フォルダーを選択して [ デプロイ] を選択します。
[デプロイ] パネルのオプションの完全なセットについては、『Studio Web ガイド』の「 ソリューションをパブリッシュしてデプロイする 」をご覧ください。
アプリが https://<orgName>.uipath.host/<appName>で利用可能になります。
Package feeds
A published coded app is stored in an Orchestrator package feed, and it can be deployed only into a folder that reads packages from that feed.
- The tenant feed is the default.
uip codedapp publishuses it unless you choose another feed. - A folder created with its own package feed reads only from that feed. To deploy an app into such a folder, publish it into the folder's feed with
uip codedapp publish --folder-key <folder-key>or--folder-path <folder-path>. - A personal workspace has its own feed. Publish with
--personal-workspaceto deploy the app there.
--folder-key and --folder-path are available in UiPath CLI 1.205.0 and later.
Apps installed as part of a solution need no separate publish. Installing the solution uploads the package into the feed of the folder it installs into.
Deploying into a folder that has its own feed
In a folder that has its own package feed, the Deploy app list shows only the coded apps published into that feed. A coded app published into the tenant feed is not listed there.
A deploy into a folder that reads from a different feed than the one the app was published into is refused. uip codedapp deploy reports:
Folder <folder-key> has its own package feed (<feed-id>), but this app was published into the tenant feed. The app would deploy but could not be added to a solution. Re-publish with --folder-key <folder-key> so the package lands in this folder's feed, or deploy into a folder that reads from the tenant feed.
Folder <folder-key> has its own package feed (<feed-id>), but this app was published into the tenant feed. The app would deploy but could not be added to a solution. Re-publish with --folder-key <folder-key> so the package lands in this folder's feed, or deploy into a folder that reads from the tenant feed.
UiPath CLI versions earlier than 1.205.0, and direct calls to the Apps API, get the same refusal as error code 1018, starting with Package '<name>:<version>' was published into feed <feed-id>, but folder '<folder-name>' reads packages from feed <folder-feed-id>.
Both commands below take the folder key, which uip or folders list --output json shows. uip codedapp publish also accepts --folder-path <folder-path> instead.
To deploy the app into the folder:
-
Publish the package into the folder's feed:
uip codedapp publish --folder-key <folder-key>uip codedapp publish --folder-key <folder-key> -
Deploy it into the folder:
uip codedapp deploy --folder-key <folder-key>uip codedapp deploy --folder-key <folder-key>
The package published into the folder's feed is registered as a separate app, with the same name as the app in the tenant feed. An existing deployment stays linked to the app it was deployed from and does not move to the new app.
External tenant feed
Coded apps work with a tenant feed that an Orchestrator administrator points at an external NuGet server, such as Artifactory, Nexus, or Azure Artifacts. The feed is set up in Orchestrator, as described in Configuring tenant settings.
With API Key authentication, Orchestrator sends the key only when it uploads or deletes a package, so the server must allow anonymous reads. If the server requires a sign-in to read packages, set its user name and password under Authentication instead. Otherwise publish and deploy fail with Cannot connect to packages feed, the Deployment Settings may be invalid.
Versions published before the switch to an external feed
Deploying or upgrading to a version published before the switch fails with Package not found. Switching the tenant feed from internal to external does not copy packages to the server, so these versions stay listed in Orchestrator but can no longer be downloaded. Publish the versions you need again after the switch.
Versions pushed directly to the server
Publishing a version that was pushed directly to the server, for example by a nuget push step in a continuous integration (CI) pipeline, fails with no matching package found in the Orchestrator feed. Orchestrator does not know the version until it is imported, and uploading the package again from the Packages page fails because it already exists.
To use the version:
-
In Orchestrator, go to Tenant > Feeds > Feed.
-
Open the package's menu and import the version:
- To import the latest version, select Import latest version.
- To import an earlier version, select View versions, and then import the version you need.
-
Publish the version. Importing alone does not register the app, so it cannot be deployed until you publish it:
uip codedapp publish --name <appName> --version <version>uip codedapp publish --name <appName> --version <version>
To avoid the import, publish with uip codedapp publish instead of pushing the package to the server.