AWS CLI 启用 history 命令查看历史执行过的命令
AWS CLI About 1,193 words查看帮助
aws history help
输出
PS C:\Users\fendoudebb> aws history help
history
^^^^^^^
***********
Commands to interact with the history of AWS CLI commands ran over
"enabled" in the "~/.aws/config" file. This can be done by running:
Synopsis
********
history
Options
*******
*None*
Available Commands
******************
* list
* show
开启 history 功能
aws configure set cli_history enabled
查看配置文件
cat ~/.aws/config
输出
PS C:\Users\fendoudebb> cat ~/.aws/config
[default]
cli_history = enabled
history list
aws history list
输出
PS C:\Users\fendoudebb> aws history list
629d2825-1896-408d-a388-bfdd50dff119 2025-10-25 03:34:35 PM configure list 0
2cec05cb-82a1-4fe1-a377-6dde8c68feab 2025-10-25 03:34:13 PM configure help null
history show
aws history show
输出
PS C:\Users\fendoudebb> aws history show
AWS CLI command entered
at time: 2025-10-25 15:34:35.344
with AWS CLI version: aws-cli/2.31.21 Python/3.13.7 Windows/10 exe/AMD64
with arguments: ['configure', 'list']
AWS CLI command exited
at time: 2025-10-25 15:34:39.410
with return code: 0
参考文档
Views: 7 · Posted: 2026-10-31
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...