Skip to content

Updating atlcli

atlcli includes a built-in update mechanism that checks for new versions and can self-update.

Terminal window
# Check for and install updates
atlcli update
# Check only (don't install)
atlcli update --check
# Install specific version
atlcli update v0.5.0

By default, atlcli checks for updates once per day when running commands in an interactive terminal. If an update is available, you’ll see a notification:

Update available: 0.5.1 → 0.6.0. Run: atlcli update

Auto-check is automatically disabled in these environments:

EnvironmentReason
CI/CD pipelinesAvoid unnecessary API calls, keep logs clean
Non-interactive shellsPiped output, cron jobs, scripts
JSON output modeScripting mode (--json flag)
Explicit opt-outATLCLI_DISABLE_UPDATE_CHECK=1

The atlcli update command itself always works regardless of environment.

Set the environment variable:

Terminal window
export ATLCLI_DISABLE_UPDATE_CHECK=1

atlcli automatically detects how it was installed and provides appropriate update instructions:

Self-update is fully supported:

Terminal window
atlcli update # Downloads and installs new version

Shows Homebrew update instructions:

Terminal window
$ atlcli update
Update available: 0.5.1 0.6.0
Installed via Homebrew. To update, run:
brew update && brew upgrade atlcli

Shows source update instructions:

Terminal window
$ atlcli update
atlcli 0.5.1 is up to date.
Running from source. To update, run:
git pull && bun run build

Install a specific version (useful for testing or rollback):

Terminal window
# Install specific version
atlcli update v0.5.0
# Or reinstall via install script
curl -fsSL https://atlcli.sh/install.sh | bash -s v0.5.0

For scripting, use --json:

Terminal window
atlcli update --check --json

Output:

{
"schemaVersion": "1",
"currentVersion": "0.5.1",
"latestVersion": "0.6.0",
"updateAvailable": true,
"installMethod": "script"
}

Updates are downloaded from GitHub Releases and verified:

  1. HTTPS only - All downloads use HTTPS
  2. Checksum verification - SHA256 checksums verified before installation
  3. Backup - Previous version backed up to ~/.atlcli/bin/atlcli.bak
  4. Atomic replacement - New binary verified before replacing old
VariableDescription
ATLCLI_DISABLE_UPDATE_CHECKSet to 1 to disable automatic update checks

If update checks fail silently, verify network connectivity:

Terminal window
curl -fsSL https://api.github.com/repos/BjoernSchotte/atlcli/releases/latest

If you see “Cannot determine installation method”, reinstall using the install script:

Terminal window
curl -fsSL https://atlcli.sh/install.sh | bash

The previous version is saved at ~/.atlcli/bin/atlcli.bak:

Terminal window
mv ~/.atlcli/bin/atlcli.bak ~/.atlcli/bin/atlcli
Jira and Confluence are trademarks of Atlassian Corporation Plc. atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.