- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- UIP Maestro のオーサリング
- UIP Maestro レジストリ
- uip model-hub
- アクティビティ検索
- アクティビティ 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 タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
uip codedapp pack
「uip codedapp pack」の構文とオプション - ビルドされたコード化されたアプリを '.nupkg' アーカイブにパッケージ化して公開します。
uip codedapp pack packages a built coded app into a .nupkg archive ready for publication. It reads the <dist> directory, applies the supplied package metadata, and writes the archive to --output-dir (defaults to ./.uipath). Use --dry-run to check the package configuration and preview the output path without writing anything to disk. This is a local, unauthenticated packaging step — it accepts no login/auth-override flags; those only apply to push/pull/publish/deploy.
概要
uip codedapp pack <dist> [options]
uip codedapp pack <dist> [options]
<dist>— path to the dist folder containing the built application. The folder must containindex.htmlat its root; only static builds are supported.
Package ID
The package ID is derived from --name: the name is lowercased, spaces and underscores become hyphens, other characters outside a-z, 0-9, and - are removed, repeated hyphens collapse to one, and leading or trailing hyphens are trimmed. For example, --name "My App" produces the package ID my-app. When the name changes, the CLI prints a warning that names the sanitized value. The display title keeps the name as typed unless you pass --display-name.
When --name is omitted in an interactive terminal, the command prompts for it. In a non-interactive run, a missing name fails the command.
オプション
| フラグ | 説明 |
|---|---|
-n, --name <name> | Package name. The package ID is derived from it (refer to Package ID). |
--display-name <name> | UiPath に表示される人間が判読できるアプリのタイトル。既定では、型どおりに --name されます。 |
-v, --version <version> | パッケージ バージョン。既定値は [ 1.0.0] です。 |
--output-dir <dir> | 出力ディレクトリ。既定値は [ ./.uipath] です。 |
--author <author> | パッケージ作成者既定値は [ UiPath Developer] です。 |
--description <desc> | パッケージの説明。 |
--main-file <file> | メインエントリファイル。既定値は [ index.html] です。 |
--content-type <type> | コンテンツの種類: webapp、 library、または process。既定値は [ webapp] です。 |
--repository-url <url> | 追跡性のためにパッケージに記録されたソース リポジトリの URL です。 |
--repository-commit <sha> | ソース リポジトリのコミット ハッシュ。追跡性のために記録されます。 |
--repository-branch <branch> | ソース リポジトリ ブランチ。 |
--repository-type <type> | ソース リポジトリの種類。--repository-urlが設定されている場合、既定でgitされます。 |
--release-notes <text> | パッケージのリリース ノート |
--project-url <url> | Automation Hub のアイデアの URL |
--dry-run | Show what would be packaged without creating the package or writing any file. |
例
# Default — writes ./.uipath/myapp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"
# Custom output directory and author
uip codedapp pack ./dist \
--name "MyApp" --version "2.0.0" \
--output-dir ./packages \
--author "Contoso Ltd."
# Separate display title — package id stays my-app
uip codedapp pack ./dist --name "my-app" --display-name "My App" --version "1.0.0"
# Check the package configuration without writing anything to disk
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --dry-run
# Write the .nupkg into a directory other than ./.uipath
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --output-dir ./out
# Default — writes ./.uipath/myapp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"
# Custom output directory and author
uip codedapp pack ./dist \
--name "MyApp" --version "2.0.0" \
--output-dir ./packages \
--author "Contoso Ltd."
# Separate display title — package id stays my-app
uip codedapp pack ./dist --name "my-app" --display-name "My App" --version "1.0.0"
# Check the package configuration without writing anything to disk
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --dry-run
# Write the .nupkg into a directory other than ./.uipath
uip codedapp pack ./dist --name "MyApp" --version "1.0.0" --output-dir ./out
データシェイプ(--output json)
{
"Code": "PackCompleted",
"Data": {
"Message": "Package created successfully.",
"Package": "myapp@1.0.0",
"Output": ".uipath/myapp.1.0.0.nupkg"
}
}
{
"Code": "PackCompleted",
"Data": {
"Message": "Package created successfully.",
"Package": "myapp@1.0.0",
"Output": ".uipath/myapp.1.0.0.nupkg"
}
}
A dry run (--dry-run) returns a different code and message, and Output shows the path the package would take:
{
"Code": "PackDryRunCompleted",
"Data": {
"DryRun": true,
"Message": "Dry run - no package created.",
"Package": "myapp@1.0.0",
"Output": ".uipath/myapp.1.0.0.nupkg"
}
}
{
"Code": "PackDryRunCompleted",
"Data": {
"DryRun": true,
"Message": "Dry run - no package created.",
"Package": "myapp@1.0.0",
"Output": ".uipath/myapp.1.0.0.nupkg"
}
}
A failed pack returns Result: "Failure" with Message: "Pack failed" and the cause in Instructions.
関連
- uip codedapp push — パッケージ化する前にソースを Studio Web に送付します。
- uip codedapp publish — 結果の
.nupkgを UiPath にアップロードします。