Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Guided command examples for the AWS CLI

Focus mode
Guided command examples for the AWS CLI - AWS Command Line Interface

The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with a wide range of AWS services using commands in your command-line shell. This section provides guided examples that show how to leverage the AWS CLI to access some of the AWS services. This includes some of the custom AWS CLI commands, such as the high-level aws s3 commands. These command examples demonstrate common actions used for some AWS services and provide additional resources for more information.

Whether you are an experienced AWS user or new to the AWS CLI, these guided examples serve as a resource for streamlining your AWS operations.

For a complete reference of all the available commands for each AWS service, see the AWS CLI version 2 reference guide. Additionally, you can utilize the built-in command line help to explore the array of AWS services, commands, options, and features in the AWS CLI.

For more command examples that are not available in this section, see the AWS CLI command examples section. These are open source command examples that are also available in the AWS CLI version 2 reference guide. Command examples are hosted in the AWS CLI repository on GitHub.

For open source bash scripting examples, see AWS CLI with Bash script code examples. Bash scripting examples are hosted in the AWS Code Examples Repository on GitHub.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.