Code examples for the Amazon CLI - Amazon Command Line Interface
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This documentation is for Version 1 of the Amazon CLI only. For documentation related to Version 2 of the Amazon CLI, see the Version 2 User Guide.

Code examples for the Amazon CLI

This chapter provides a collection of examples that show you how to use the Amazon Command Line Interface (Amazon CLI) with Amazon Web Services services.

The Amazon CLI has the following types of examples in this guide:

Example feedback

Can't find what you need? Request a command example by using the Provide feedback link at the bottom of this page or on the relevant command page in the Amazon CLI reference guide.

Want to contribute? Contribute Amazon CLI command examples in the Amazon Code Examples Repository on GitHub. For more information on contributing, see Amazon CLI code example contribution quick steps on GitHub pages.