本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
Command Reference
本节提供了所有 AWS 转换自定义 CLI 命令的全面参考。
交互式命令
atx
使用 Trans AWS form 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 custom def exec
在代码存储库上执行转换定义。
| Option | 长格式 | 参数 | 说明 |
|---|---|---|---|
-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)或键值对的路径 |
--tv |
--transformation-version |
<version> |
要使用的转换定义的版本 |
--limit |
--limit |
<limit> |
设置代理分钟数 |
-h |
--help |
- | 显示命令帮助 |
atx 自定义定义列表
列出可用的转换定义。
atx custom def list atx custom def list --json # Output in JSON format
atx 自定义防御获取
获取特定转换定义的详细信息。
| Option | 长格式 | 参数 | 说明 |
|---|---|---|---|
-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 自定义定义发布
将转换定义发布到注册表。
| Option | 长格式 | 参数 | 说明 |
|---|---|---|---|
-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 保存草稿
将转换定义另存为注册表中的草稿。草稿将在 30 天后过期,并且不会显示在注册表中。此命令返回草稿的版本号。必须使用转换名称和版本号显式执行和检索草稿。
atx custom def save-draft -n <transformation-name> --description "Description" --sd <directory>
课程命令
atx 自定义防御学习
打开交互式会话,查看和管理转换定义从之前的运行中吸取的经验教训。按类别浏览课程,查看课程详情,并存档、恢复或删除课程。
atx custom def learnings -n<transformation-name>
标记命令
atx 自定义定义列表标签
列出转换定义的标签。
atx custom def list-tags --arn <transformation-arn>
atx 自定义 def 标签
向转换定义添加标签。
atx custom def tag --arn <arn> --tags '{"env":"prod","team":"backend"}'
atx 自定义定义取消标记
从转换定义中移除标签。
atx custom def untag --arn <arn> --tag-keys "env,team"
更新命令
税务局更新
更新 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 工具
允许客户使用 view/confirm 其 MCP 工具配置。必须通过 ~/ 文件直接管理配置的更新。 aws/atx/mcp.json
atx mcp tools # View list of MCP servers atx mcp tools -s # List tools for the specified server