aws-cli --output off suppresses stdout
Introduced 2026-02-27 · score 0.96
HOW TO USE IT
When a repository workflow must suppress AWS CLI stdout while keeping errors visible, add `--output off` to the command. Error messages remain on stderr.
aws s3api list-buckets --output offaws s3api head-bucket --bucket <bucket> --output off 2>/dev/nullWHY THIS HELPS
Run an AWS CLI command in a repository workflow where stdout must be suppressed while errors and warnings remain visible.
REQUIREMENTS AND LIMITATIONS
- Version: 2.34.0
- --output off: Selects the `off` output format, which suppresses command output to stdout; errors are still written to stderr.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-cli/blob/2.34.0/CHANGELOG.rst
- https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-output-format.html
Check the installed version and the source before using it. Entry JSON