macOS and Linux
curl -fsSL https://img-cli.dev/install.sh | bash
The script picks the build for your system, checks its SHA-256, and installs img-cli into ~/.local/bin. Run it again to upgrade.
| Variable | Effect |
|---|---|
IMG_CLI_VERSION |
Install a specific version, such as v0.2.0 |
IMG_CLI_INSTALL_DIR |
Install into another directory |
IMG_CLI_DOWNLOAD_URL |
Download from a mirror |
IMG_CLI_INSTALL_DIR="$HOME/bin" curl -fsSL https://img-cli.dev/install.sh | bash
Windows
In PowerShell:
irm https://img-cli.dev/install.ps1 | iex
It picks the build for your CPU, checks its SHA-256, installs it to %LOCALAPPDATA%\Programs\img-cli, and adds that folder to your PATH. The same IMG_CLI_* variables choose the version, folder, or mirror.
Manual download
Download the archive for your system from Releases and put img-cli (or img-cli.exe) anywhere on your PATH.
From source
With Go installed:
go install github.com/djyde/img-cli/cmd/img-cli@latest
Verify the installation
img-cli version
If the shell cannot find img-cli, the install directory is not on your PATH; the installer prints the line to add to your shell profile.
Uninstall
Delete the binary, then, to remove providers, saved keys, and task records, the config directory listed in Using providers.