Installing Amazon Q for command line
You can install the Amazon Q command line for macOS by initiating a file download for the Amazon Q application. For more information, see Supported command line environments.
macOS
To install Amazon Q for command line for macOS, complete the following steps:
-
(Optional) Verify the downloaded file for Amazon Q command line for macOS. For more information, see Verifying your download.
-
Authenticate with Builder ID, or with IAM Identity Center using the start URL given to you by your account administrator.
-
Follow the instructions to install the shell integrations, and to grant macOS accessiblity permissions.
AppImage (Linux)
Amazon Q command line is available as an
AppImage
To install Amazon Q for command line for Linux with AppImage, complete the following steps:
-
Download Amazon Q for command line for AppImage. Install the latest version using the following command:
curl --proto '=https' --tlsv1.2 -sSf https://desktop-release.q.us-east-1.amazonaws.com/latest/amazon-q.appimage -o amazon-q.appimage
For a specific version of the Amazon Q command line, you can replace
... /latest/ ...
in the URL with the version number.Note
Amazon Q command line follows semantic versioning.
-
(Optional) Verify the downloaded Amazon Q command line for AppImage. For more information, see Verifying your download.
-
Make the downloaded AppImage executable using the following command:
chmod +x amazon-q.appimage
-
(Optional) Move the downloaded AppImage to a location on your
PATH
. -
Execute the AppImage and follow the onboarding steps.
The AppImage bundles an XDG Desktop Entry file that can be installed and managed locally for you if you prefer. If your system supports the XDG Autostart specification, this will enable autostart capabilities, ensuring that the application is run on startup.
Note
Your system must have FUSE version 2 installed to run AppImages. For Ubuntu 22 and above, you can install FUSE 2 by using the following command:
sudo apt install libfuse2
Note
If the desktop application doesn't open, try running
amazon-q.appimage
directly in your terminal to view any output error logs. You can open a support issue in the Amazon Q for command line discussions GitHub repository. -
Authenticate with Builder ID, or with IAM Identity Center using the start URL provided by your account administrator.
-
In a new terminal, use the following command:
q doctor
Follow any remediation instructions until you see the output: "✓ Everything looks good!"
Ubuntu/Debian (Linux)
The Amazon Q command line is available as a prebuilt deb that you can install manually. The deb is compatible with a variety of Debian style systems. If you encounter issues with Ubuntu, consider AppImage, which should work on most Linux environments.
To install Amazon Q for command line for Linux with Ubuntu/Debian, complete the following steps:
-
Download the Amazon Q for command line deb package using the following command:
curl --proto '=https' --tlsv1.2 -sSf https://desktop-release.q.us-east-1.amazonaws.com/latest/amazon-q.deb -o amazon-q.deb
For a specific version of the Amazon Q command line, you can replace
... /latest/ ...
in the URL with the version number.Note
Amazon Q command line follows semantic versioning.
-
(Optional) Verify the downloaded Amazon Q command line for Ubuntu/Debian. For more information, see Verifying your download.
-
Install the Amazon Q command line using the following apt command:
sudo apt install -y ./amazon-q.deb
The apt command installs the binaries
q
,qterm
, andq-desktop
under/usr/local/bin
. -
Open the desktop application using the following command:
q
Note
If the desktop application doesn't open, run
q-desktop
directly in your terminal to view any output error logs. You can open a support issue by runningq issue
.The deb packages also includes a desktop entry that is installed under
/usr/share/applications/amazon-q.desktop
. If your environment supports the XDG Desktop Entry specifications, you can open the desktop application by searching for Amazon Q. -
Follow the onboarding steps.
-
Authenticate with Builder ID, or with IAM Identity Center using the start URL provided by your account administrator.
-
In a new terminal, use the following command:
q doctor
Follow any remediation instructions until see the output: "✓ Everything looks good!"