how.wtf

Turn off the pager for AWS CLI

· Thomas Taylor

Disabling the AWS CLI pager can be completed in three different ways.

Disable the pager via environment variable

Setting the AWS_PAGER environment variable will disable the pager.

1export AWS_PAGER=
2aws s3 ls

Disable the pager via configuration

In AWS CLI V2, support for a cli_pager profile option was added. In the ~/.aws/config file, the cli_pager may be used.

1[default]
2cli_pager=

Disable the pager via CLI argument

A global argument named --no-cli-pager exists to disable the AWS CLI pager per command usage.

1aws s3 ls --no-cli-pager

#aws   #aws-cli  

Reply to this post by email ↪