AWS cli: disable pager (“less” paginator)

Elvis Ciotti
Oct 11, 2023

--

AWS CLI by default outputs long text using “less” as paginator (so you can use keyboard to navigate). If you need to capture the output or put the command into a batch script, you can disable it by setting an env

export AWS_PAGER=""

See full documentation here

--

--

Elvis Ciotti
Elvis Ciotti

Written by Elvis Ciotti

Software Contractor — Java, Spring, k8s, AWS, Javascript @ London - hire me at https://elvisciotti.github.io/

No responses yet