Install the Atlas CLI
Install the Atlas CLI with one command: the install script on macOS and Linux, or the PowerShell script on Windows. Then check it with atlas --version.
Install
macOS and Linux:
Windows PowerShell:
Windows Command Prompt:
On Windows, use PowerShell or Command Prompt. The macOS and Linux installer stops with a message if you run it in Git Bash. It needs curl or wget.
The installer:
- Finds your operating system and chip.
- Downloads the right program.
- Checks its SHA-256 checksum. If the checksum doesn’t match, it stops. If it can’t find a checksum for your system, or your computer has no SHA-256 tool, it prints a warning and carries on. Read the output.
- Puts it in
~/.atlas/bin/atlas. On Windows it goes to%USERPROFILE%\.atlas\bin\atlas.exe. - Adds that folder to your PATH.
- Sets up tab completion for your shell. The Command Prompt installer skips this step.
Open a new terminal when it finishes.
Supported systems
32-bit systems are not supported.
Check it worked
It prints the version, for example atlas version v1.5.0.
Install by hand
Download the program for your system from https://cdn.youratlas.com/atlas-cli/releases/<version>/. The latest version number is in https://cdn.youratlas.com/atlas-cli/releases/latest.txt. Each version folder also has a checksums.txt file to check your download against.
On Linux, use sha256sum -c in place of shasum -a 256 -c.
Update
Run:
The CLI also checks for a new version at most once an hour when you run a command in a terminal. If there is one, it updates itself and prints Updating Atlas: ... on stderr. It skips this check in CI, when ATLAS_NO_UPDATE is set to 1 or true, when you pipe the output, and with --no-update. Running the install command again also gives you the latest version.
Uninstall
macOS and Linux:
Then remove the lines the installer added to your shell profile (~/.zshrc, ~/.bashrc, ~/.bash_profile or ~/.config/fish/config.fish). They add the PATH folder and tab completion. On fish, also delete ~/.config/fish/completions/atlas.fish.
Windows: delete the %USERPROFILE%\.atlas folder and remove %USERPROFILE%\.atlas\bin from your user PATH. In PowerShell, also remove the atlas completion powershell line from your profile.
~/.atlas also holds your saved keys. Removing it signs you out of every profile.
