Install Damdit CLI
What you need
Section titled “What you need”- 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.
Install
Section titled “Install”curl -fsSL https://download.damdit.com/cli/install.sh | shThe installer:
- checks that Docker is installed and running,
- downloads the image
damdit/damditfrom Docker Hub, - creates the Docker volume
damdit-cli-data, where your projects and audits live, owned by your user, - writes the launcher
damdit-clito~/.local/binand 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:
export PATH="$HOME/.local/bin:$PATH"To see what the installer would do without changing anything:
curl -fsSL https://download.damdit.com/cli/install.sh | sh -s -- --dry-runAdd your CI key
Section titled “Add your CI key”Damdit CLI’s licence is a CI key from your Damdit account.
- Sign in at damdit.com/account with your Damdit account’s e-mail.
- Without a licence, start the 7-day trial (no card is needed) or buy the licence.
- Under CI keys, name the key, for example after the server or pipeline that uses it, and choose Create key.
- Put the key in the environment where Damdit CLI runs:
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.
Run the first audit
Section titled “Run the first audit”damdit-cli project create --name Example --production https://example.com/damdit-cli audit Exampledamdit-cli summary Example --format textaudit waits until the audit is done and prints its summary. Progress goes to stderr. Next: Commands.
Update
Section titled “Update”damdit-cli updateDownloads 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.
Install a specific version
Section titled “Install a specific version”curl -fsSL https://download.damdit.com/cli/install.sh | DAMDIT_CLI_VERSION=27.0.0 shThe 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.
Uninstall
Section titled “Uninstall”damdit-cli uninstallStops damdit-cli serve, removes the image and the launcher. Your projects and audits stay in the volume damdit-cli-data.
damdit-cli uninstall --dataAlso removes the volume, with every project, audit and report. To keep a copy, export the data first:
damdit-cli export-data --out ~/damdit-cli-export.zipUninstalling doesn’t revoke your CI key. To free its place in your licence, revoke it at damdit.com/account.