Listing

When using list commands, the results are automatically paged until the max-items is reached. The default max-items is 50, and can be changed using the --max-items flag, or specified in the configuration file. Setting --max-items to 0 will return a list of all resources.

--max-items int        maximum number of items to return, use 0 for no limit (default 50)

The --page-size flag is used for specifying the number of items to retrieve for each API request made when retrieving the listed output. This can be used to optimize list command invocations.

--page-size int32      optimizes listing operations by limiting the number of items retrieved with each API call (default 1000)

Many listing commands support sorting using a --sort-by command line option.

--sort-by string       specifies the order to list items (default "timeCreated Desc")

Last updated