Skip to content

Install Damdit CLI

  • Docker, running. On a Mac: Docker Desktop, OrbStack or Colima. On Linux: Docker Engine. On Windows: Docker inside WSL2.
  • A Damdit account with a trial or a licence, and a CI key from it.
  • An internet connection. Damdit CLI checks the key with damdit.com on each run.

No administrator password (sudo) is needed.

Terminal window
curl -fsSL https://download.damdit.com/cli/install.sh | sh

The installer:

  1. checks that Docker is installed and running,
  2. downloads the image damdit/damdit from Docker Hub,
  3. creates the Docker volume damdit-cli-data, where your projects and audits live, owned by your user,
  4. writes the launcher damdit-cli to ~/.local/bin and keeps its own settings in ~/.damdit-cli.

It edits no shell file. If ~/.local/bin isn’t on your PATH, it prints the line to add to your shell’s profile, for example ~/.zshrc or ~/.bashrc:

Terminal window
export PATH="$HOME/.local/bin:$PATH"

To see what the installer would do without changing anything:

Terminal window
curl -fsSL https://download.damdit.com/cli/install.sh | sh -s -- --dry-run

Damdit CLI’s licence is a CI key from your Damdit account.

  1. Sign in at damdit.com/account with your Damdit account’s e-mail.
  2. Without a licence, start the 7-day trial (no card is needed) or buy the licence.
  3. Under CI keys, name the key, for example after the server or pipeline that uses it, and choose Create key.
  4. Put the key in the environment where Damdit CLI runs:
Terminal window
export DAMDIT_CI_KEY=…

Treat the key like a password. In a pipeline, keep it in the pipeline’s secrets. Damdit CLI reads it from the environment and never prints or saves it.

Revoke… next to a key on the account page stops it at once. An active key takes one of your licence’s two places. See Licence and trial.

Terminal window
damdit-cli project create --name Example --production https://example.com/
damdit-cli audit Example
damdit-cli summary Example --format text

audit waits until the audit is done and prints its summary. Progress goes to stderr. Next: Commands.

Terminal window
damdit-cli update

Downloads the newest release of the major version you installed, for example the newest 27. Running the install command again also updates Damdit CLI.

If damdit-cli serve runs and isn’t auditing, it moves to the new version with the same variables. If it is in the middle of an audit, it keeps the previous version; run damdit-cli update again when the audit is done.

Terminal window
curl -fsSL https://download.damdit.com/cli/install.sh | DAMDIT_CLI_VERSION=27.0.0 sh

The image’s tags are an exact version (27.0.0), a line (27.0, 27) and latest. Install a specific version, for example, when your year of updates has ended and you want the last version your licence covers.

Terminal window
damdit-cli uninstall

Stops damdit-cli serve, removes the image and the launcher. Your projects and audits stay in the volume damdit-cli-data.

Terminal window
damdit-cli uninstall --data

Also removes the volume, with every project, audit and report. To keep a copy, export the data first:

Terminal window
damdit-cli export-data --out ~/damdit-cli-export.zip

Uninstalling doesn’t revoke your CI key. To free its place in your licence, revoke it at damdit.com/account.