本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
命令參考
本節提供所有 AWS 轉換自訂 CLI 命令的完整參考。
互動式命令
atx
使用 AWS 轉換 CLI 開始互動式對話。
atx # Start new conversation atx --resume # Resume most recent conversation atx --conversation-id <id> # Resume specific conversation atx -t # Start with all tools trusted
互動式工作階段命令
在互動式工作階段期間,可以在輸入提示中輸入下列命令:
/usage- 顯示目前工作階段的累積客服人員分鐘數
轉換定義命令
atx 自訂 def exec
在程式碼儲存庫上執行轉換定義。
| 選項 | 長表單 | 參數 | 說明 |
|---|---|---|---|
-p |
--code-repository-path |
<path> |
要轉換的程式碼儲存庫路徑。對於目前的目錄,請使用 "." |
-c |
--build-command |
<command> |
建置儲存庫時要執行的命令 |
-n |
--transformation-name |
<name> |
登錄檔中轉換定義的名稱 |
-x |
--non-interactive |
- | 在沒有使用者協助的情況下執行轉換 |
-t |
--trust-all-tools |
- | 信任所有工具 (沒有工具提示) |
-d |
--do-not-learn |
- | 選擇不允許從此執行中擷取經驗教訓 |
-g |
--configuration |
<config> |
組態檔案 (JSON 或 YAML) 或 key=value 對的路徑 |
--tv |
--transformation-version |
<version> |
要使用的轉換定義版本 |
--limit |
--limit |
<limit> |
設定客服人員分鐘 |
-h |
--help |
- | 顯示命令的說明 |
atx 自訂定義清單
列出可用的轉換定義。
atx custom def list atx custom def list --json # Output in JSON format
atx 自訂定義取得
取得特定轉換定義的詳細資訊。
| 選項 | 長表單 | 參數 | 說明 |
|---|---|---|---|
-n |
--transformation-name |
<name> |
要擷取的轉換定義名稱 |
--tv |
--transformation-version |
<version> |
要擷取的轉換定義版本 |
--td |
--target-directory |
<directory> |
要儲存轉換定義的目標目錄 (預設:".") |
--json |
--json |
- | JSON 格式的輸出回應 |
-h |
--help |
- | 顯示命令的說明 |
atx 自訂定義刪除
永久刪除轉換定義。
atx custom def delete -n <transformation-name>
atx 自訂定義發佈
將轉換定義發佈至登錄檔。
| 選項 | 長表單 | 參數 | 說明 |
|---|---|---|---|
-n |
--transformation-name |
<name> |
要發佈的轉換定義名稱 |
--tv |
--transformation-version |
<version> |
要使用的轉換定義版本 (不適用於 --description 或 --source-directory) |
--sd |
--source-directory |
<directory> |
讀取本機轉換定義檔案的來源目錄 (不適用於 --transformation-version) |
--description |
--description |
<description> |
轉換定義的描述 (不適用於 --transformation-version) |
--json |
--json |
- | JSON 格式的輸出回應 |
-h |
--help |
- | 顯示命令的說明 |
atx 自訂 def save-draft
將轉換定義儲存為登錄檔中的草稿。草稿會在 30 天後過期,且不會顯示在登錄檔中。此命令會傳回草稿的版本編號。您必須使用轉換名稱和版本編號明確執行和擷取草稿。
atx custom def save-draft -n <transformation-name> --description "Description" --sd <directory>
課程命令
atx 自訂定義學習
開啟互動式工作階段,以檢視和管理轉換定義從先前執行中學到的經驗教訓。依類別瀏覽課程、檢視課程詳細資訊,以及封存、還原或刪除課程。
atx custom def learnings -n<transformation-name>
標籤命令
atx 自訂 def list-tags
列出轉換定義的標籤。
atx custom def list-tags --arn <transformation-arn>
atx 自訂定義標籤
將標籤新增至轉換定義。
atx custom def tag --arn <arn> --tags '{"env":"prod","team":"backend"}'
atx 自訂定義取消標籤
從轉換定義中移除標籤。
atx custom def untag --arn <arn> --tag-keys "env,team"
更新命令
atx 更新
更新 AWS 轉換 CLI。
atx update # Update to latest version atx update --check # Check for updates only atx update --target-version <version> # Update to specific version
MCP 命令
atx mcp 工具
允許用戶端檢視/確認其 MCP 工具組態。組態的更新必須透過檔案 ~/.aws/atx/mcp.json 直接管理
atx mcp tools # View list of MCP servers atx mcp tools -s # List tools for the specified server