Amazon Q inline on the command line - Amazon Q Developer

Amazon Q inline on the command line

The Amazon Q command line provides AI-generated completions as you type in the command line.

An example of a Amazon Q for command line inline command line completion.

Using Amazon Q inline

To start using the Amazon Q command line:

  1. Install the Amazon Q command line.

  2. Open a new terminal or command prompt.

  3. When you start typing Amazon Q will make suggestions based on your current input and previous commands. To accept a suggestion, press the right arrow key. The suggestion will be inserted into your shell.

To disable the inline feature for new terminal sessions, run the following command:

q inline disable

This command will only affect new terminal sessions, and the inline feature will remain enabled in any existing terminal windows.

Amazon Q inline Limitations

Currently, inline is only supported in zsh on macOS, and on Linux via the SSH integration.

The inline feature is known to conflict with some popular shell extensions, including zsh-autosuggestions. If you have zsh-autosuggestions installed, you must disable it to use Amazon Q inline in the command line.