uipath-cli
latest
false
- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- UiPath for Coding Agents
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- uip docsai
- add-test-data-entity
- テスト データのキューを追加
- 追加-テスト-データ-バリエーション
- 分析
- 開発
- プロジェクトを作成
- 差分
- アクティビティを検索
- GET-ANALYZER-RULES
- get-default-activity-xaml
- エラーを取得
- 手動テスト用のテスト ケースを取得
- 手動テストステップを取得
- get-versions
- Get-workflow-example
- indicate-application
- 要素を示す
- inspect-package
- install-data-fabric-entities
- パッケージのインストールまたは更新
- list-data-fabric-entities
- list-workflow-examples
- パッケージ化
- 元に戻す
- ファイル名を実行
- 検索テンプレート
- スタートスタジオ
- 実行を停止
- UIA
- UIP トレース
- 移行
- 参照とサポート
重要 :
このコンテンツは機械翻訳によって処理されています。
新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
UiPath CLI ユーザー ガイド
uip or attachments は、ジョブの添付ファイル (ジョブに入力または出力として添付されたファイル (スクリーンショット、レポート、データ ファイル) ) を管理します。添付ファイルはテナントスコープであるため、 downloadにフォルダー コンテキストは必要ありません。アップロードには、 jobs start --attachment または --attachment-idを使用します。
概要
uip or attachments <verb> [options]
uip or attachments <verb> [options]
動詞
| 動詞 | 目的 |
|---|---|
list | 特定のジョブの添付ファイルのリストを取得します。 |
download | 単一の添付ファイルを ID でダウンロードします。 |
UIP または添付ファイルのリスト
ジョブの添付ファイルのリストを取得します。添付ファイル ID、名前、カテゴリ (Input または Output)、および作成タイムスタンプを返します。この動詞は、ジョブのフォルダー コンテキストを内部的に解決し、(バッチ処理されていない) JobAttachments/GetByJobKey エンドポイントを直接呼び出します。
オプション
| Short | 長押し | 値 (Value) | 既定 (Default) | 説明 |
|---|---|---|---|---|
| — | --job-key | GUID | 必須 | 添付ファイルのリストを取得するジョブ キー。 |
-t | --tenant | name | セッションの既定値 | テナントを上書きします。 |
例
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 \
--output-filter "Data[?Category=='Output'].AttachmentId"
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 --output table
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 \
--output-filter "Data[?Category=='Output'].AttachmentId"
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 --output table
データシェイプ(--output json)
{
"Code": "AttachmentList",
"Data": [
{
"AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
"Name": "screenshot.png",
"Category": "Output",
"Created": "2025-04-15T10:32:00Z"
}
]
}
{
"Code": "AttachmentList",
"Data": [
{
"AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
"Name": "screenshot.png",
"Category": "Output",
"Created": "2025-04-15T10:32:00Z"
}
]
}
uip または添付ファイルのダウンロード
ジョブの添付ファイルをローカル ディスクにダウンロードします。CLI は DownloadAttachmentFileを使用します。このリダイレクトは BLOB ストレージへの 302 リダイレクトを返します。動詞はリダイレクトに従い、ファイルをディスクに書き込みます。
引数
| 名前 | Required | 目的 |
|---|---|---|
<attachment-id> | ○ | 添付ファイル ID (GUID)。attachments list または jobs get の出力から検索します。 |
オプション
| Short | 長押し | 値 (Value) | 既定 (Default) | 説明 |
|---|---|---|---|---|
-t | --tenant | name | セッションの既定値 | テナントを上書きします。 |
-o | --output | パス | attachment-<id> | 出力ファイル パス。 |
例
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
--output ./report.pdf
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
-o /tmp/screenshot.png
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
--output ./report.pdf --output-filter 'Data.Size'
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
--output ./report.pdf
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
-o /tmp/screenshot.png
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
--output ./report.pdf --output-filter 'Data.Size'
データシェイプ(--output json)
{
"Code": "AttachmentDownloaded",
"Data": {
"AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
"FileName": "./report.pdf",
"Size": 204812
}
}
{
"Code": "AttachmentDownloaded",
"Data": {
"AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
"FileName": "./report.pdf",
"Size": 204812
}
}
終了コード
「終了コード」を参照してください。動詞固有の上書きはありません。
関連コマンド
uip or jobs— ジョブの起動時にファイルを添付するためのjobs start --attachment/--attachment-idjobs get、出力に添付ファイルの参照が表示されます。