Updating atlcli
Updating atlcli
Section titled “Updating atlcli”atlcli includes a built-in update mechanism that checks for new versions and can self-update.
Quick Update
Section titled “Quick Update”# Check for and install updatesatlcli update
# Check only (don't install)atlcli update --check
# Install specific versionatlcli update v0.5.0Automatic Update Checks
Section titled “Automatic Update Checks”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 updateWhen Auto-Check is Disabled
Section titled “When Auto-Check is Disabled”Auto-check is automatically disabled in these environments:
| Environment | Reason |
|---|---|
| CI/CD pipelines | Avoid unnecessary API calls, keep logs clean |
| Non-interactive shells | Piped output, cron jobs, scripts |
| JSON output mode | Scripting mode (--json flag) |
| Explicit opt-out | ATLCLI_DISABLE_UPDATE_CHECK=1 |
The atlcli update command itself always works regardless of environment.
Disable Auto-Check
Section titled “Disable Auto-Check”Set the environment variable:
export ATLCLI_DISABLE_UPDATE_CHECK=1Installation Method Detection
Section titled “Installation Method Detection”atlcli automatically detects how it was installed and provides appropriate update instructions:
Install Script (curl)
Section titled “Install Script (curl)”Self-update is fully supported:
atlcli update # Downloads and installs new versionHomebrew
Section titled “Homebrew”Shows Homebrew update instructions:
$ atlcli updateUpdate available: 0.5.1 → 0.6.0
Installed via Homebrew. To update, run: brew update && brew upgrade atlcliFrom Source
Section titled “From Source”Shows source update instructions:
$ atlcli updateatlcli 0.5.1 is up to date.
Running from source. To update, run: git pull && bun run buildVersion Pinning
Section titled “Version Pinning”Install a specific version (useful for testing or rollback):
# Install specific versionatlcli update v0.5.0
# Or reinstall via install scriptcurl -fsSL https://atlcli.sh/install.sh | bash -s v0.5.0JSON Output
Section titled “JSON Output”For scripting, use --json:
atlcli update --check --jsonOutput:
{ "schemaVersion": "1", "currentVersion": "0.5.1", "latestVersion": "0.6.0", "updateAvailable": true, "installMethod": "script"}Security
Section titled “Security”Updates are downloaded from GitHub Releases and verified:
- HTTPS only - All downloads use HTTPS
- Checksum verification - SHA256 checksums verified before installation
- Backup - Previous version backed up to
~/.atlcli/bin/atlcli.bak - Atomic replacement - New binary verified before replacing old
Environment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
ATLCLI_DISABLE_UPDATE_CHECK | Set to 1 to disable automatic update checks |
Troubleshooting
Section titled “Troubleshooting”Update check fails
Section titled “Update check fails”If update checks fail silently, verify network connectivity:
curl -fsSL https://api.github.com/repos/BjoernSchotte/atlcli/releases/latestCannot self-update
Section titled “Cannot self-update”If you see “Cannot determine installation method”, reinstall using the install script:
curl -fsSL https://atlcli.sh/install.sh | bashRollback after failed update
Section titled “Rollback after failed update”The previous version is saved at ~/.atlcli/bin/atlcli.bak:
mv ~/.atlcli/bin/atlcli.bak ~/.atlcli/bin/atlcliRelated Topics
Section titled “Related Topics”- Getting Started - Installation
- Doctor - Health checks after update