【发布时间】:2021-03-17 16:02:37
【问题描述】:
我想显示一些帮助文本,然后用 grep 搜索它。
aws ec2 help | grep instance
AWS CLI 使用more 对帮助进行分页。
我已经尝试过禁用它:
aws --no-cli-pager ec2 help | grep instance
export AWS_PAGER=''; aws ec2 help | grep instance
并在配置文件中更改cli_pager:
[default]
cli_pager=
它仍然使用寻呼机。
我在 Cygwin 上使用 AWS CLIv2 Windows 版本。
如何禁用它?
【问题讨论】:
标签: amazon-web-services aws-cli