简体   繁体   English

aws cli 自动缩放命令不返回到 shell 促销

[英]aws cli autoscaling command doesn't return to shell promot

In Macbook pro, iterm2 with aws cli, shell zsh.在 Macbook pro 中,iterm2 与 aws cli,shell zsh。

When running below command, the shell goes to an empty screen with "(END)" on the top left corn.当运行下面的命令时,shell 进入一个空白屏幕,左上角有“(END)”。 I have to press "q" to exit to get back to shell prompt.我必须按“q”退出才能返回 shell 提示符。

aws autoscaling update-auto-scaling-group --auto-scaling-group-name xxx --desired-capacity 1

This is very annoying.这很烦人。 How can I change it so that the command just return back to normal shell promot?如何更改它以使命令恢复正常 shell 促销?

Not all aws cli command has this same behavior.并非所有 aws cli 命令都具有相同的行为。 Like "aws s3 ls" runs ok.就像“aws s3 ls”运行正常。

Thanks.谢谢。

The AWS CLI v2 has the option to specify a pager to handle output that goes longer than one screen. AWS CLI v2 可以选择指定一个寻呼机来处理超过一个屏幕的 output。

If you wish to display all output with no pagination, edit the ~.aws/config file and insert:如果您希望显示所有 output 而没有分页,请编辑~.aws/config文件并插入:

[default]
cli_pager=

See: AWS CLI version 2 uses a paging program for all output by default请参阅: AWS CLI 版本 2 默认为所有 output 使用分页程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM