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

uip solution pack

「uip solution pack」の構文とオプション - ソリューション ディレクトリまたは '.uis' バンドル ファイルからデプロイ可能な '.zip' を生成します。

uip solution pack は、ソリューション ディレクトリ (.uipx マニフェストを含む) または .uis バンドル ファイルから配置可能な .zip パッケージを生成します。生成されるアーカイブは、uip solution publish がテナント フィードにアップロードしuip solution deploy run、フィードをデプロイできます。

Pack is an offline operation — it does not contact Orchestrator except to resolve NuGet dependencies from tenant feeds (and, with --feed-folder, from an Orchestrator folder's package feed), and does not contact AutomationOps except when a governance flag or --ignored-rules is passed while you are signed in — so it is safe to run inside build steps that do not yet have full credentials, as long as dependency resolution is covered.

概要​

uip solution pack <solutionPath> [outputPath] \
  [--name <name>] [--version <version>] \
  [--project <id-or-path> [--package-id <id>]] \
  [--dry-run] [--skip-build] \
  [--skip-analyze] [--ignored-rules <rules>] [--governance-file-path <path>] [--governance-product <product>] \
  [--nuget-sources-config-path <path>] [--exclude-configured-sources] [--feed-folder <name>] \
  [--signing-certificate-path <path>] [--signing-certificate-password <password>] [--signing-timestamp-server <url>] \
  [--author <text>] [--description <text>] [--release-notes <text>] [--project-url <url>] \
  [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] \
  [--login-validity <minutes>]
uip solution pack <solutionPath> [outputPath] \
  [--name <name>] [--version <version>] \
  [--project <id-or-path> [--package-id <id>]] \
  [--dry-run] [--skip-build] \
  [--skip-analyze] [--ignored-rules <rules>] [--governance-file-path <path>] [--governance-product <product>] \
  [--nuget-sources-config-path <path>] [--exclude-configured-sources] [--feed-folder <name>] \
  [--signing-certificate-path <path>] [--signing-certificate-password <password>] [--signing-timestamp-server <url>] \
  [--author <text>] [--description <text>] [--release-notes <text>] [--project-url <url>] \
  [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] \
  [--login-validity <minutes>]

このコマンドは 、グローバルオプション を尊重し、 標準の終了コードを返します。

引数​

  • <solutionPath> (必須) — ソリューション ディレクトリ ( .uipx マニフェストを含む) または .uis ファイルへのパスです。
  • [outputPath] (任意) — .zip パッケージが書き込まれる出力ディレクトリです。--dry-runが設定されていない限り必須です。--dry-run指定せずに省略すると、どちらかを追加するためのポインターが表示されて失敗します。

オプション​

長押し値 (Value)既定 (Default)説明
-n, --name <name>textソリューションのフォルダー名 (または .uis ファイルのベース名)パッケージ名。パッケージ化された .zip の名前は <name>_<version>.zipです。
-v, --version <version>text1.0.0パッケージ バージョン。出力ファイル名に表示され、 で deploy run--package-version に渡される値です。
--project <id-or-path>プロジェクトの Id またはパス—ソリューション .zipではなく、ソリューションのこのプロジェクトのみを専用の .nupkgにパックします。プロジェクトの Id を .uipx、またはソリューション フォルダーを基準にした相対パスを取得します。区切り文字と大文字と小文字は無視されます。プロジェクトはスタンドアロン プロジェクトとしてパックされるため、ソリューション リソースは含まれません。.uis ファイルではサポートされておらず、--nameと組み合わせて使用できません。「 1 つのプロジェクトをパッケージ化する」をご覧ください。
--package-id <id>textWhole-Solution Pack がプロジェクトに与える ID--projectがパッケージ化されたプロジェクトのパッケージ ID です。これがない場合、プロジェクトはソリューションパック全体で提供される ID を保持します: ソリューションが保存した ID、それ以外の場合は <solution>.<type>.<project folder>。--projectが必要です。
--dry-runフラグ無効使い捨ての一時コピーに対してフル パック パイプライン (リソース同期、実行時依存関係の排出、パッケージャー オプションの検証) を実行し、出力を破棄します。パック時の失敗 (依存関係の欠落、リソース バインディングの破損、アンパック可能なプロジェクトの種類) を、 .zip を生成したりソリューションに書き戻したりすることなくキャッチします。生成されたパッケージの内容物は検査 されないため 、ソリューション フィードが結果を受け入れることを保証することはできません。[outputPath]オプションにします。
--skip-buildフラグ無効Pack each coded app's existing build output instead of running its dependency install and build script first. Use it when the pipeline already built the app, or when the pack step cannot reach the package registry. A coded app with no build output then fails the pack. Refer to Coded app builds.
--login-validity <minutes>分10更新をトリガーするまでの最小分単位: トークンの有効期限が切れるまでの最小分単位です。依存関係の解決にテナント フィードが必要な場合、またはテナントのガバナンス ポリシーが確認されている場合にのみ関連します。

依存関係の解決​

長押し値 (Value)既定 (Default)説明
--nuget-sources-config-path <path>パス—プロジェクトの依存関係を解決するための NuGet ソース構成ファイルへのパスです。
--exclude-configured-sourcesフラグ無効依存関係は、テナント フィードと --nuget-sources-config-pathからのみ解決します。組み込みの UiPath フィードと nuget.org フィードを削除します。これらのフィードに依存していない依存関係は復元できません。
--feed-folder <name>名前またはパス—Resolve dependencies from this Orchestrator folder's package feed in addition to the tenant library feeds. For a folder that uses the tenant package feed, that is the tenant Processes feed. Accepts a folder name or fully qualified path. A folder that cannot be found fails the command.

ガバナンスの分析​

--skip-analyze、 --ignored-rules、 --governance-file-path、 --governance-product は、ソリューション内のすべての RPA プロジェクトに対して実行されるワークフロー アナライザーを制御します。これらのフラグは組み合わせることができます。

長押し値 (Value)既定 (Default)説明
--skip-analyzeフラグ無効すべての RPA プロジェクトでワークフロー アナライザーをスキップします。コンパイルと検証は引き続き実行され、アナライザーのルールのみがスキップされます。
--ignored-rules <rules>コンマ区切りのルール ID です。—すべての RPA プロジェクトで検出結果が無視されるアナライザーのルール ID です (例: ST-USG-034,ST-MRD-002)。このフラグを繰り返してさらに追加します。ルールは引き続き実行されますが、その結果は報告されず、パックに失敗することはありません。--governance-file-pathまたは同梱のルールに加えて適用されます。サインインしているテナントが Automation Ops ポリシーをパブリッシュしても、リストは適用されず、その旨を示す警告が表示されます。
--governance-file-path <path>パス—WorkflowCompiler に同梱されているアナライザーのルールではなく、このローカルのガバナンス ポリシー ファイルに対してすべての RPA プロジェクトを分析します。Automation Ops または Studio のルール構成ファイルからエクスポートされたポリシーを受け入れます。サインインすると、最初にテナントに確認されます (--governance-product が別の製品の名前を指定した場合を除き、テナントについて確認StudioWebされます)。テナントが独自のポリシーをパブリッシュすると、そのポリシーが使用され、このファイルは無視されて警告が表示され、パックは続行されます。テナントがポリシーを公開していない場合、ポリシーを要求できない場合、またはポリシー サービスが応答しない場合、このファイルが使用されます。ファイルはテナントに要求される前に読み取られるため、読み取り不能なファイルや JSON 以外のファイルはいずれの場合もパックに失敗します。
--governance-product <product>text—サインインしているテナントに対して、すべての RPA プロジェクトを Automation Ops でパブリッシュされたガバナンス ポリシーに照らして分析します。値は、ポリシーをダウンロードした 製品 です (例: StudioWeb、 Development、 Business)。

いずれかのガバナンス フラグの空の値 (--governance-file-path "") は間違いとして拒否され、警告なしに「フラグなし」として扱われることはありません。

パッケージの署名​

パッケージ済みのプロジェクトの.nupkgに署名するには、PATHの dotnet CLI が必要です。

長押し値 (Value)既定 (Default)説明
--signing-certificate-path <path>パス—.pfxコード署名証明書へのパスです。設定すると、ソリューション内のすべてのパックされたプロジェクト .nupkg 署名されてから、ソリューション .zipにバンドルされます。
--signing-certificate-password <password>text または env.VAR—証明書のパスワード。シェル履歴ではなく環境変数から読み取るように env.ENV_NAME 渡します。
--signing-timestamp-server <url>URL—署名のタイムスタンプ サーバー URL です。

パッケージのメタデータ (ソースの追跡性)​

これらのフラグにより、トレーサビリティのメタデータがアーカイブ ルートにある package.metadata.json ファイルと、各プロジェクトの .nuspecにスタンプされます。必須ではありません。--authorまたは--descriptionを省略すると、各メンバー プロジェクトは、自身のプロジェクト ファイルで宣言した値を保持し、何も宣言していない場合は UiPath/Created by UiPath にフォールバックします。

長押し値 (Value)既定 (Default)説明
--author <text>text各プロジェクト自身の作成者、その他 UiPathパッケージの作成者。設定すると、すべてのメンバー プロジェクトに適用されます。
--description <text>text各プロジェクト独自の説明、その他 Created by UiPathパッケージの説明。設定すると、すべてのメンバー プロジェクトに適用されます。
--release-notes <text>text—パッケージのリリース ノート
--project-url <url>URL—Automation Hub のアイデアの URL
--repository-url <url>URL—ソース リポジトリの URL です。
--repository-commit <sha>text—ソース リポジトリのコミット ハッシュ。
--repository-branch <branch>text—ソース リポジトリ ブランチ。
--repository-type <type>textgit ( --repository-url が設定されている場合)ソース リポジトリの種類。[ --repository-url ] も設定されている場合にのみ記録されます。

最小限​

uip solution pack ./my-solution ./dist
uip solution pack ./my-solution ./dist

ソリューションを ./my-solution で ./dist/my-solution_1.0.0.zip (既定のバージョン) にパックします。

共通 — CI ビルドのピン名とバージョン​

uip solution pack ./my-solution ./dist --name invoices --version 1.2.0
uip solution pack ./my-solution ./dist --name invoices --version 1.2.0

./dist/invoices_1.2.0.zip書き込みます。

パッケージ化せずに検証​

uip solution pack ./my-solution --dry-run
uip solution pack ./my-solution --dry-run

一時ディレクトリに対してフル パック パイプラインを実行し、出力を破棄します。リソース バインディング、変数参照、ランタイム依存関係のエラーを outputPathなしでキャッチできるため、CI のデプロイ前のゲートとして便利です。

スタンプのソース トレーサビリティ メタデータ​

uip solution pack ./my-solution ./dist --version 1.2.0 \
  --repository-url https://github.com/acme/repo \
  --repository-commit abc123 \
  --repository-branch main \
  --release-notes "v1.2.0"
uip solution pack ./my-solution ./dist --version 1.2.0 \
  --repository-url https://github.com/acme/repo \
  --repository-commit abc123 \
  --repository-branch main \
  --release-notes "v1.2.0"

パッケージ化されたプロジェクトに署名する​

uip solution pack ./my-solution ./dist --version 1.2.0 \
  --signing-certificate-path ./cert.pfx \
  --signing-certificate-password env.UIPATH_SIGNING_CERTIFICATE_PASSWORD \
  --signing-timestamp-server http://timestamp.digicert.com
uip solution pack ./my-solution ./dist --version 1.2.0 \
  --signing-certificate-path ./cert.pfx \
  --signing-certificate-password env.UIPATH_SIGNING_CERTIFICATE_PASSWORD \
  --signing-timestamp-server http://timestamp.digicert.com

ワークフロー アナライザーをスキップ​

uip solution pack ./my-solution ./dist --version 1.2.0 --skip-analyze
uip solution pack ./my-solution ./dist --version 1.2.0 --skip-analyze

コンパイルと検証は引き続き実行され、アナライザーのルールのみがスキップされます。

テナントのガバナンス ポリシーに対して分析する​

uip solution pack ./my-solution ./dist --version 1.2.0 --governance-product Development
uip solution pack ./my-solution ./dist --version 1.2.0 --governance-product Development

Pack coded apps that the pipeline already built​

uip solution pack ./my-solution ./dist --version 1.2.0 --skip-build
uip solution pack ./my-solution ./dist --version 1.2.0 --skip-build

Packs the existing build output of each coded app. No dependency install and no build script run.

アナライザーの特定のルールを無視する​

uip solution pack ./my-solution ./dist --version 1.2.0 --ignored-rules ST-USG-034,ST-MRD-002
uip solution pack ./my-solution ./dist --version 1.2.0 --ignored-rules ST-USG-034,ST-MRD-002

ルールは引き続き機能しますが、その調査結果はパックに失敗しません。このリストは、テナントが Automation Ops ポリシーをパブリッシュする際には適用されません。

1 つのプロジェクトをパッケージ化する​

uip solution pack ./my-solution ./dist --project MyProcess --package-id Acme.MyProcess --version 1.2.0
uip solution pack ./my-solution ./dist --project MyProcess --package-id Acme.MyProcess --version 1.2.0

--project は、ソリューション .zipではなくプロジェクトの.nupkgを生成します。たとえば、1 つのプロジェクトを単独で Orchestrator フィードにパブリッシュする場合などです。--name ソリューションに という名前を付け .zipため、 --projectと一緒に使用することはできません。 --package-id プロジェクト パッケージに名前を付けます。

スクリプティング — パブリッシュ ステップの出力パスをキャプチャします。​

PKG=$(uip solution pack ./my-solution ./dist --version 1.2.0 --output-filter "Packages" --output plain)
uip solution publish "$PKG"
PKG=$(uip solution pack ./my-solution ./dist --version 1.2.0 --output-filter "Packages" --output plain)
uip solution publish "$PKG"

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

リアルパック:

{
  "Code": "SolutionPack",
  "Data": {
    "Package": "my-solution@1.2.0",
    "Packages": "./dist/my-solution_1.2.0.zip"
  }
}
{
  "Code": "SolutionPack",
  "Data": {
    "Package": "my-solution@1.2.0",
    "Packages": "./dist/my-solution_1.2.0.zip"
  }
}
  • Package — パックされたソリューションの <name>@<version> 識別子です。
  • Packages — <outputPath>に書き込まれる.zipパスのコンマ区切りのリストです。通常は 1 つのパスです。

ドライ ラン (--dry-run):

{
  "Code": "SolutionPack",
  "Data": {
    "Package": "my-solution@1.0.0",
    "DryRun": true,
    "Status": "Valid"
  }
}
{
  "Code": "SolutionPack",
  "Data": {
    "Package": "my-solution@1.0.0",
    "DryRun": true,
    "Status": "Valid"
  }
}

パックが失敗し、パッケージャーがプロジェクトごとの結果を報告すると、失敗エンベロープには Data.Projects、メンバー プロジェクトごとに 1 つのエントリが残されます。

フィールド説明
Pathソリューション ディレクトリに対する相対的なプロジェクト ディレクトリ (スラッシュ付き)。
Typeプロジェクトの種類です。
ResultSuccess または Failure。
Messageプロジェクトの結果メッセージ (ある場合)。
Findingsプロジェクトの調査結果。各検出結果には、 Level、 Source (Other、 Analyzer、 Validator、 Compiler)、 ErrorCode、 RuleName、 Description、 FilePath、 ActivityIdRef、 DocumentationLinkを含めることができます。

失敗がプロジェクトに属していない場合、Data.Projectsは省略されます。

--project:

{
  "Code": "SolutionPack",
  "Data": {
    "Package": "Acme.MyProcess@1.2.0",
    "Packages": "/home/me/dist/Acme.MyProcess.1.2.0.nupkg"
  }
}
{
  "Code": "SolutionPack",
  "Data": {
    "Package": "Acme.MyProcess@1.2.0",
    "Packages": "/home/me/dist/Acme.MyProcess.1.2.0.nupkg"
  }
}
  • Package — パックされたプロジェクトの <package-id>@<version> です。
  • Packages — .nupkgの絶対パス です。

プロジェクトの種類​

Pack は、各メンバー プロジェクトを、そのプロジェクトの種類に合わせてパッケージャー ツールに渡します。一部のプロジェクトの種類には、独自のパック動作があります。

projectTypeパックの動作
フロー.flow ファイルが Maestro 設計者の検証ルールに照らして確認されます。エラーを含むフローは、パックに失敗します。警告を含むすべての問題は、ノードに名前を付け ActivityIdRef とともに結果として報告されます。
ビジネス ルール<rule-name>-<version>.uiruleという名前の.uirule アーカイブとしてパックされます。ルールの.dmnファイルと、そこから派生したentry-points.jsonを保持します。
Data Fabric エンティティValidated only: pack checks that every entity definition is intact and its schema is valid. For an entity authored with --local, pack also checks each relationship and choice-set field: a target that the solution does not hold (REFERENCE_TARGET_NOT_FOUND, CHOICE_SET_NOT_FOUND), or a target that was replaced under a new key (STALE_REFERENCE), fails the pack. The entity definition resources are the deployable payload, so no separate package is produced for the project.
Function (JavaScript or TypeScript)entry-points.json and bindings_v2.json are generated from the project sources before the pack, as uip function pack does. Python Function projects are packed with the manifests on disk.
Coded appBuilt before it is packed, unless --skip-build is passed. Refer to Coded app builds.

Coded app builds​

Pack builds every coded app that has a build script in its package.json, then packs the folder that config.bundlePath in the app's webAppManifest.json names. The runner needs Node.js and the app's package manager on PATH.

The install and the build run in the folder that holds the app's package.json. Dependencies are installed only when node_modules/ is missing. The lockfile selects the package manager, and the build script runs with the same one:

ファイルをロックインストール コマンド
package-lock.json OR npm-shrinkwrap.jsonnpm ci
pnpm-lock.yamlpnpm install --frozen-lockfile
yarn.lockyarn install --frozen-lockfile
bun.lock OR bun.lockbbun install --frozen-lockfile
なしnpm install, which writes a package-lock.json
ケース (Case)動作
Sources unchanged since the last buildThe build is skipped. Pack keeps a fingerprint of the app's files in .uipath-build.json beside package.json, and builds again when a file changes, is added, or is removed, or when the bundle folder is gone. Add .uipath-build.json to .gitignore.
No build script, or no package.jsonThe existing bundle folder is packed as it is, and nothing is installed.
--skip-buildNo install and no build run for any coded app. The existing bundle folder is packed, also when it is out of date.
--dry-runThe build runs in the temporary copy, and the solution folder is not changed. The copy leaves out node_modules/, so an app that needs a build installs its dependencies again.
--projectThe one coded app that is packed is built.

The install and the build run with the environment that uip was started with, so PATH, proxy, and registry settings apply. UIPATH_CLI_AUTH_TOKEN and UIPATH_ACCESS_TOKEN are removed from that environment.

故障モード​

  • --project 解決しません。.uipxにないプロジェクト Idまたはパス、複数のプロジェクトに一致するプロジェクト、ソリューション フォルダーの外部を指しているプロジェクト、またはソリューションのルートにあるプロジェクト パスは、 ErrorCode: invalid_argumentで拒否されます。メッセージには、ソリューションのプロジェクト Id 値、および選択すべきパスが一覧表示されます。
  • .uis ファイルまたは --nameを使用して--projectします。拒否: --project は、プロジェクトをソリューション フォルダーからパッケージ化し、--project生成されないソリューション .zipに名前を付け--nameます。--package-id プロジェクト パッケージに名前を付けます。
  • --projectのない--package-id、空の--project、または --package-idです。拒否されました。
  • --dry-runなしでoutputPathが欠落しています。出力ディレクトリを指定するか、 を渡すためのポインターで失敗 --dry-run。
  • 空のガバナンス フラグの値。--governance-file-pathまたは--governance-productの値が空の場合、却下されます。
  • 使用できないガバナンス ポリシー ファイルです。読み取れないか JSON ではない --governance-file-path ファイルは、パックに失敗します。Automation Ops のエクスポートの内部ポリシーのみを保持するファイルも同様です。エクスポートしたファイルをそのまま渡します。
  • メンバー パッケージ ID の競合。メンバーのパッケージ ID は <solution>.<project-type>.<member-folder>として構成され、上限は 100 文字で、ソリューション全体で一意である必要があります。スペースとドットは 1 つのドットに折りたたまれ、ID は大文字と小文字を区別せずに比較されます。2 人のメンバーが同じ ID で構成されている場合、パックは失敗し、ID とそれを生成したフォルダーに名前が付けられ ErrorCode: invalid_argument。<solution>部分は、.uipx ファイル自体の名前です。--nameアーカイブの名前のみを変更し、メンバー ID は変更されません。メンバー フォルダーまたは .uipxの名前を変更してから、再度パッケージ化します。
  • Flow Extract document node with no processor. An Extract document node that names no processor fails the pack with ErrorCode: invalid_argument and Context.ErrorCode: idp_processor_unprovisioned. Instructions names the uip maestro flow nodes provision command to run. Two nodes that author the same processor fail the pack with Context.ErrorCode: idp_processor_duplicate_author.
  • JavaScript or TypeScript Function project with no uipath.json. Fails the pack with ErrorCode: invalid_argument. Instructions says to run uip function init in the project folder.
  • プロジェクトの失敗。コンパイル、検証、分析に失敗したプロジェクトは、パックに失敗します。Data.Projects プロジェクトとその結果に名前を付けます。
  • Coded app build failure. A build script that fails, or a package manager that is not on PATH, fails the pack with ErrorCode: invalid_argument and Retry: RetryWillNotFix. Message names the app folder, the command, its exit code, and the end of the build output. Instructions names the command to run in that folder.
  • Coded app dependency install failure. Fails with ErrorCode: execution_failed and Retry: RetryLater, because the cause is often the package registry or the network. Pack again when the registry can be reached, or build the app in an earlier step and pass --skip-build.
  • Coded app with no build output. A bundle folder that is missing, or that holds no HTML entry point, fails the pack with ErrorCode: invalid_argument. Without a build script, Instructions says to add one or to point config.bundlePath at the folder the app builds to. With --skip-build, Instructions says to build the app first.
  • メンバー プロジェクト ディレクトリ内の出力パスです。拒否された — そこに書かれたものはすべて、次のパックでそのプロジェクト独自のパッケージに詰め込まれます。ソリューションのプロジェクト ディレクトリの外部にある出力パスを選択します (たとえば、ソリューションのルートにある ./out 、またはソリューションの完全な外部にあるディレクトリ)。
  • アンパック可能なプロジェクトの種類。プロジェクトの種類に名前を付け、 uip tools search / uip tools install <tool> をポイントして、そのパッケージを処理するパッケージャー ツールを追加します (新しく追加された種類の場合は最初に uip update します)。
  • uip solution publish — パッケージ化された.zipをテナントのソリューション フィードにアップロードします。
  • uip solution upload — ソリューションをデプロイ用にパッケージ化するのではなく、対話型の編集用に Studio Web にアップロードする代替パスです。
  • uip solution deploy run — パブリッシュされたパッケージを Orchestrator にデプロイします。

参照​

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

接続

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

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

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

最新情報を取得