Add the cli directory to your PATH or create an alias:
macOS (Apple Silicon)
macOS (Intel)
Linux
Windows
Copy
Ask AI
# current sessionexport PATH="$HOME/diffblue-agents/cli:$PATH"# or persistent (all future sessions)echo 'export PATH="$HOME/diffblue-agents/cli:$PATH"' >> ~/.zshrcsource ~/.zshrc# or aliasalias diffblue-agents="$HOME/diffblue-agents/cli/diffblue-agents"
Copy
Ask AI
# current sessionexport PATH="$HOME/diffblue-agents/cli:$PATH"# or persistent (all future sessions)echo 'export PATH="$HOME/diffblue-agents/cli:$PATH"' >> ~/.zshrcsource ~/.zshrc# or aliasalias diffblue-agents="$HOME/diffblue-agents/cli/diffblue-agents"
Copy
Ask AI
# current sessionexport PATH="$HOME/diffblue-agents/cli:$PATH"# or persistent (all future sessions)echo 'export PATH="$HOME/diffblue-agents/cli:$PATH"' >> ~/.bashrcsource ~/.bashrc# or aliasalias diffblue-agents="$HOME/diffblue-agents/cli/diffblue-agents"
Copy
Ask AI
# current session$env:PATH = "$HOME\diffblue-agents\cli;$env:PATH"# or persistent (all future sessions)[Environment]::SetEnvironmentVariable("PATH", "$HOME\diffblue-agents\cli;$([Environment]::GetEnvironmentVariable("PATH", "User"))", "User")# or aliasSet-Alias diffblue-agents "$HOME\diffblue-agents\cli\diffblue-agents.ps1"
Verify the installation:
Copy
Ask AI
diffblue-agents version
The archive includes a bundled JRE for the Agents server and a bundled CLI runtime. You do not need to install Java or Node.js separately for Agents — only for building and testing your target project.
macOS: remove quarantine attribute
macOS may quarantine files downloaded from the internet. If you see a warning that the file is from an unidentified developer, remove the quarantine attribute:
Copy
Ask AI
xattr -r -d com.apple.quarantine diffblue-agents/
Windows: unblock scripts before first run
Windows may block downloaded scripts from executing. Before running Diffblue Agents, unblock the required files in PowerShell:
This scans your PATH for supported agents and presents an interactive selection. If your agent is not detected automatically, choose “Enter path manually” to specify the agent type and executable path.See the CLI reference for all configuration options.