- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- activities find
- activities get-default-xaml
- 分析
- analyzer-rules list
- 開発
- クリーンアップ
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- オブジェクト リポジトリを取得
- Init
- instances list
- パッケージ化
- packages inspect
- packages install
- packages versions
- パブリッシュ
- リモート
- 元に戻す
- 実行、デバッグ、実行
- 設定
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 検証
- workflow-examples get
- workflow-examples list
- UIP タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
uip solution upload
「uip solution upload」の構文とオプション - ローカルのソリューションをバンドルし、それを Studio Web に送信してブラウザーで編集します。
uip solution upload ブラウザーで編集するために、ローカル ソリューションを UiPath Studio Web にアップロードします。ソリューションは内部の .uis アーカイブにバンドルされ、Studio Web に送信され、(成功すると) デザイナーで直接開くことができる URL が出力されます。
Orchestrator 用のデプロイ可能な.zipを生成する uip solution pack + uip solution publishとは異なり、upload は対話型の Studio Web 作成画面をターゲットにします。引き続きブラウザーでソリューションを共同で編集する場合に使用します。
Overwrite or import
Before uploading, the command checks whether Studio Web holds a solution with the SolutionId from the .uipx (or from the .uis archive):
- The solution exists. It is overwritten in place. The replaced contents are first recorded as a restorable version, unless you pass
--no-snapshot.Data.ActionisOverwritten. - The solution does not exist. The upload is imported as a new solution, and the ID that Studio Web assigns is written back into the local
.uipxso the next upload overwrites the same solution.Data.ActionisImported.
--force skips the existence check and overwrites directly. If Studio Web has no solution with that SolutionId, the command fails with not_found and uploads nothing; re-run without --force to import as new.
概要
uip solution upload <solutionPath> [--force] [--no-snapshot] [--login-validity <minutes>]
uip solution upload <solutionPath> [--force] [--no-snapshot] [--login-validity <minutes>]
このコマンドは 、グローバルオプション を尊重し、 標準の終了コードを返します。
引数
<solutionPath>(必須) — 次のいずれか:.uipxマニフェストを含むソリューション ディレクトリ (最も一般的)。.uipxファイル (コマンドは、それを含むディレクトリを解決します)。.uisファイル (事前にバンドルされたソリューション アーカイブ。後方互換性のためにそのままアップロードされます)。
オプション
--force— Skip the existence check and overwrite the Studio Web solution named by the bundledSolutionIddirectly. An upload overwrites an existing cloud solution without it. Fails if that solution does not exist. No effect when noSolutionIdis bundled (a.uisarchive without one): the upload imports as new.--no-snapshot— クラウド ソリューションの復元可能な上書き前のバージョンは、その内容を置換する前に記録しないでください。前回のアップロード以降に Studio Web で行った変更は失われます。ローカル ファイルは影響を受けません。アップロードによって新しいソリューションがインポートされても、効果はありません。--login-validity <minutes>— 更新をトリガーするトークンの有効期限の最小分前。既定値は [10です。
例
最小限
uip solution upload ./my-solution
uip solution upload ./my-solution
特定の .uipx をアップロードします。
uip solution upload ./workspace/my-solution/my-solution.uipx
uip solution upload ./workspace/my-solution/my-solution.uipx
復元可能なスナップショットなしで上書きする
uip solution upload ./my-solution --no-snapshot
uip solution upload ./my-solution --no-snapshot
スクリプティング — 返されたデザイナーの URL を開きます
URL=$(uip solution upload ./my-solution --output-filter "DesignerUrl" --output plain)
open "$URL" # macOS
URL=$(uip solution upload ./my-solution --output-filter "DesignerUrl" --output plain)
open "$URL" # macOS
データシェイプ(--output json)
Studio Web にはバンドルされた SolutionIdのソリューションがないため、新規としてインポートされ、ローカル .uipx が割り当てられた ID で更新されます。
{
"Code": "SolutionUpload",
"Data": {
"Status": "Uploaded successfully",
"Action": "Imported",
"SolutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"DesignerUrl": "https://cloud.uipath.com/myorg/mytenant/studio_/designer/p1?solutionId=a1b2c3d4-0000-0000-0000-000000000001",
"LocalSolutionIdUpdated": {
"Path": "/workspace/my-solution/my-solution.uipx",
"From": "00000000-0000-0000-0000-0000000000ff",
"To": "a1b2c3d4-0000-0000-0000-000000000001"
},
"Response": { }
}
}
{
"Code": "SolutionUpload",
"Data": {
"Status": "Uploaded successfully",
"Action": "Imported",
"SolutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"DesignerUrl": "https://cloud.uipath.com/myorg/mytenant/studio_/designer/p1?solutionId=a1b2c3d4-0000-0000-0000-000000000001",
"LocalSolutionIdUpdated": {
"Path": "/workspace/my-solution/my-solution.uipx",
"From": "00000000-0000-0000-0000-0000000000ff",
"To": "a1b2c3d4-0000-0000-0000-000000000001"
},
"Response": { }
}
}
ソリューションはすでに Studio Web に存在しているため、その場で上書きされ、置き換えられたコンテンツは最初に復元可能なバージョンとして記録されます。
{
"Code": "SolutionUpload",
"Data": {
"Status": "Uploaded successfully",
"Action": "Overwritten",
"SolutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"DesignerUrl": "https://cloud.uipath.com/myorg/mytenant/studio_/designer/p1?solutionId=a1b2c3d4-0000-0000-0000-000000000001",
"SnapshotCreated": true,
"Response": { }
}
}
{
"Code": "SolutionUpload",
"Data": {
"Status": "Uploaded successfully",
"Action": "Overwritten",
"SolutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"DesignerUrl": "https://cloud.uipath.com/myorg/mytenant/studio_/designer/p1?solutionId=a1b2c3d4-0000-0000-0000-000000000001",
"SnapshotCreated": true,
"Response": { }
}
}
Action— そのSolutionIdを持つソリューションが Studio Web にすでに存在していた場合"Overwritten"、初回アップロード時に"Imported"されます。SolutionId— Studio Web で割り当てられた Identity (初回アップロード時) または一致済み (上書き時) です。また、ローカル.uipxに書き戻されるため、次のuploadで同じソリューションが更新されます。DesignerUrl— ソリューション内の最初のプロジェクトのすぐに開ける URL です。ソリューションに事前にスコープが設定されています。nullStudio Web がプロジェクト ID を返さない場合は /absentLocalSolutionIdUpdated— 新しいSolutionIdがローカル.uipxに書き戻されたときにのみ存在します (Path、From、To)。上書きが行われている場合、またはアップロード ソースに書き換える事前 ID がない場合には表示されません。SnapshotCreated— present andtrueonly on an overwrite that recorded a restorable pre-overwrite version (that is, without--no-snapshot). Absent on a fresh import and with--no-snapshot.Response— Studio Web の生の応答ペイロード。デバッグに役立ちます。安定した契約の一部ではありません。
副作用
- Resource preparation. For a solution directory or
.uipxfile,uploadprepares the solution's resources the same way asuip solution pack: it syncs each project'sbindings_v2.jsoninto the solution's resource declarations, asuip solution resources refreshdoes, and writes what each project contributes onto its resources. An error that a project's tool reports fails the upload. A.uisfile is uploaded as-is, without this step. - SolutionId write-back. On an import, the returned solution ID replaces (or populates) the
SolutionIdfield in the local.uipx.
Files left out of the bundle
When bundling a solution directory, upload always leaves out .venv, node_modules, __pycache__, .git, .local, and .flow-sdk folders, and dotenv files (.env, .env.local, .env.production, and similar).
To leave out more files, add a .uipignore file at the solution root, in a project folder, or both. The syntax is gitignore: one pattern per line, # for comments, globs such as *.log, anchored paths such as /dist, a trailing / for directories only, and ! to re-include. Patterns in a project's .uipignore match relative to that project folder and apply only to it. An unreadable .uipignore is skipped with a warning.
A pattern that would leave out the manifest of a project listed in the .uipx (for example *.uiproj, or the project's folder name) is refused: the command fails with invalid_argument and names the project. Remove or narrow the pattern, or remove the project from the solution with uip solution projects remove, then upload again.
故障モード
- A project uses a
project.jsonmanifest that Studio Web does not accept. Refused withinvalid_argument. Convert the listed project to aproject.uiprojmanifest before uploading.uip solution packanduip solution publishacceptproject.json. - A
.uipignorepattern drops a listed project. Refused withinvalid_argument, as described in Files left out of the bundle. --forcewith aSolutionIdthat Studio Web does not hold. Refused withnot_found; nothing is uploaded.
関連コマンド
uip solution pack+uip solution publish—uploadに代わるデプロイパイプライン。uip solution delete— Studio Web ソリューションをSolutionIdで削除します。uip solution init— アップロードする前にソリューションを素早く作成します。
参照
- 認証 —
uploadにはアクティブなセッションが必要です。 uip solutionの概要。