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.”

Generating command line completions

Focus mode
Generating command line completions - Amazon Q Developer

You can use Amazon Q Developer to add IDE-style completions to hundreds of popular CLIs like git, npm, docker, and aws. When you start typing in the CLI, and Amazon Q suggests contextually relevant subcommands, options, and arguments.

An example of a CodeWhisperer for command line command line completion.

The default settings provided by Amazon Q for command line may not fit your requirements and your existing workflow. You can customize your settings at any time by running q to open the settings dashboard. Here are a few popular settings:

  • Keybindings – Changing the tab keybinding to "Insert common prefix or navigate" can make command line completions appear like traditional shell completions while "Insert common prefix or insert" provides a feel like an IDE.

  • Theme – You can choose from a set of visual styling options to customize the appearance of the completion suggestions displayed in your terminal environment.

  • Instant execute after space – Enable the ability to execute a command after typing a space character to avoid Amazon Q blocking you.

  • First token completion – Enable the ability to get completions for CLIs themselves and not just the subcommands, options, and arguments.

Screenshot of Amazon Q for command line settings.
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.