Skip to navigation

Install the Atlas CLI

Install the Atlas CLI on macOS, Linux or Windows, check it, update it, or remove it.

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:

curl -fsSL https://cdn.youratlas.com/atlas-cli/install.sh | bash

Windows PowerShell:

irm https://cdn.youratlas.com/atlas-cli/install.ps1 | iex

Windows Command Prompt:

curl -fsSL https://cdn.youratlas.com/atlas-cli/install.cmd -o install.cmd && install.cmd && del install.cmd

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:

  1. Finds your operating system and chip.
  2. Downloads the right program.
  3. 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.
  4. Puts it in ~/.atlas/bin/atlas. On Windows it goes to %USERPROFILE%\.atlas\bin\atlas.exe.
  5. Adds that folder to your PATH.
  6. Sets up tab completion for your shell. The Command Prompt installer skips this step.

Open a new terminal when it finishes.

Supported systems

SystemChipProgram
macOSApple siliconatlas-darwin-arm64
macOSIntelatlas-darwin-x64
Linuxx64atlas-linux-x64
LinuxARM64atlas-linux-arm64
Windowsx64atlas-windows-x64.exe
WindowsARM64atlas-windows-arm64.exe

32-bit systems are not supported.

Check it worked

atlas --version

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.

# Find the latest version, for example v1.5.0
curl -fsSL https://cdn.youratlas.com/atlas-cli/releases/latest.txt
# Download the program and the checksums (replace v1.5.0 and the program name)
curl -fsSL https://cdn.youratlas.com/atlas-cli/releases/v1.5.0/atlas-darwin-arm64 -o atlas-darwin-arm64
curl -fsSL https://cdn.youratlas.com/atlas-cli/releases/v1.5.0/checksums.txt -o checksums.txt
# Check the download. Look for "atlas-darwin-arm64: OK"
grep ' atlas-darwin-arm64$' checksums.txt | shasum -a 256 -c
# Make it executable and put it on your PATH
chmod +x atlas-darwin-arm64
sudo mv atlas-darwin-arm64 /usr/local/bin/atlas
# Check it
atlas --version

On Linux, use sha256sum -c in place of shasum -a 256 -c.

Update

Run:

atlas update

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:

rm -rf ~/.atlas

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.

Next