Skip to navigation

Atlas CLI quickstart

Install the Atlas CLI, sign in with an API key and run your first commands.

The Atlas CLI puts the whole Atlas API in your terminal. Every endpoint is a command. Use it to check on jobs, pull call records and add contacts from a script.

The API and the CLI call a job a campaign. They are the same thing. This guide says “job” in the text and keeps campaign in command names.

It is one program with nothing else to install.

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

Open a new terminal, then check it worked:

atlas --version

More in Installation.

2. Sign in

Make an API key in the Atlas app first. See Authentication and API keys. Then:

atlas login --api-key YOUR_API_KEY

The CLI tests the key against your account. If it works, it saves the key as a profile named default and prints Logged in as profile "default".

More in Authentication.

3. Try it

# List your jobs
atlas campaign get-all-campaigns
# Get one job
atlas campaign get-campaign CAMPAIGN_ID
# Show a list as a table
atlas campaign get-all-campaigns --output table
# See every resource
atlas --help
# See the commands for one resource
atlas campaign --help

You can browse the commands and their help before you sign in. Running one that calls the API without a key fails with no API key configured and exit code 3.

What next

  • Installation: every system, manual install, update and uninstall.
  • Authentication: profiles, where the key is stored, sign out.
  • Commands: the full list, output formats, scripting and CI.