Skip to main content

Overview & Installation

The ProjectAchilles CLI (achilles) is a terminal-based management tool for the continuous security validation platform. It provides full control over agents, tasks, schedules, analytics, builds, certificates, and integrations -- all from the command line.

Dual-Mode Architecture​

The CLI operates in two modes:

  • Command Mode (achilles <command> [subcommand] [flags]): Traditional CLI commands with structured output. Ideal for scripting, CI/CD pipelines, and quick operations.
  • Chat Mode (achilles chat): AI-powered conversational interface that understands natural language. It reads platform data on its own. A change (running a test, deleting a task, rotating a key) runs only after you type the confirmation code shown for it, and only in an interactive terminal. See AI Chat Agent.

Requirements​

The CLI is built on Bun -- a fast JavaScript runtime. Bun is required to run the CLI.

# Install Bun (if not already installed)
curl -fsSL https://bun.sh/install | bash

Installation​

# Clone the repository (if you haven't already)
git clone <repo-url> ProjectAchilles
cd ProjectAchilles/cli

# Install dependencies
bun install

# Run directly
bun run bin/achilles.ts

# Or use the dev script
bun run dev
tip

You can create a shell alias for convenience:

alias achilles="bun run /path/to/ProjectAchilles/cli/bin/achilles.ts"

Building a Bundle​

cd cli
bun run build
# Output: dist/achilles.js (one bundled file; it still needs Bun to run)
bun dist/achilles.js --version

Available Commands​

CommandAliasDescription
statusstHealth check -- backend connectivity, auth, and fleet summary
loginSign in to the backend with a device code approved in the browser
logoutClear stored authentication tokens
configView and modify CLI configuration and profiles
agentsaManage enrolled agents
tokensManage enrollment tokens
taskstManage security test tasks
schedulesManage recurring test schedules
versionsManage agent binary versions
browserbBrowse the security test library
analyticsanQuery security analytics from Elasticsearch
defenderMicrosoft Defender integration
crowdstrikeCrowdStrike Falcon integration
buildsManage test builds and dependencies
certsManage code signing certificates
integrationsintConfigure Azure AD, EDR integrations (Defender, CrowdStrike), and alerting
riskRisk acceptance workflow management
usersList team members and pending invitations (changes are made in the web console)
deployUnified deployment TUI — guided multi-target deploys (interactive or headless)
helphShow help
chatLaunch AI conversational agent

Global Flags​

These flags work with any command:

FlagShortDescription
--jsonOutput structured JSON instead of human-readable text. Useful for scripting, CI/CD, and LLM integration.
--help-hShow help for the current command or subcommand.
--version-VShow CLI version.

JSON Mode​

Every command supports --json for machine-readable output. This is especially useful for:

  • Scripting: Parse output with jq or other JSON tools
  • CI/CD pipelines: Reliable structured data for automation
  • AI agents: Consistent schema for LLM consumption
# Human-readable output
achilles agents list

# JSON output for scripting
achilles agents list --json

# Pipe to jq for filtering
achilles agents list --json | jq '.data[] | select(.status == "active")'

JSON output always has the same envelope: data (the rows or the object), command, timestamp, and meta (total, limit, offset) on paginated lists. Errors are written to stderr as {"error": "...", "code": "AUTH_ERROR" | "NETWORK_ERROR" | "API_ERROR" | "CLI_ERROR"} and the exit code is 1.

Other Commands​

These commands have no page of their own. Run achilles <command> --help for the full flag list.

tokens​

Enrollment tokens for new agents. See Agent Commands.

versions​

Registered agent binaries. See Agent Commands.

browser​

SubcommandDescription
syncTrigger a git sync of the test library
statusShow the sync status
listList tests. Flags: --search (-s), --technique (-t), --category (-c), --severity
show <uuid>Show test details
file <uuid> <path>Print one file of a test
categoriesList test categories

defender and crowdstrike​

Read-only queries against the Microsoft Defender and CrowdStrike Falcon data the backend has synced.

CommandSubcommands
defenderscore, score-trend [--days 30], alerts [--severity --status --search --page --size], alerts-trend [--days 30], controls [--category], controls-by-category, correlation <score|techniques> [--days 30]
crowdstrikezta-score, zta-trend [--days 30], alerts [--severity --status --search --page --size], alert-trend [--days 30], correlation <score|techniques> [--days 30]

There are no CLI commands for SentinelOne or Sophos. Use the web console or the API for those.

integrations​

GroupSubcommands
Azure ADazure-show, azure-set (--tenant-id, --client-id, --client-secret, --label), azure-delete, azure-test
Microsoft Defenderdefender-show, defender-set (--tenant-id, --client-id, --client-secret), defender-delete, defender-test, defender-sync, defender-sync-status
CrowdStrikecrowdstrike-show, crowdstrike-set (--region, --client-id, --client-secret, --label), crowdstrike-delete, crowdstrike-test, crowdstrike-sync, crowdstrike-sync-status, crowdstrike-auto-resolve-status, crowdstrike-auto-resolve-mode --mode <disabled|dry_run|enabled>, crowdstrike-auto-resolve-receipts
Alertingalerts-show, alerts-set (--score-drop, --score-floor, --cooldown, --slack-url), alerts-test, alerts-history
Secrets on the command line

--client-secret and --slack-url values are recorded in your shell history. Clear the entry afterwards, or set these in the web console.

risk​

SubcommandDescription
acceptCreate a risk acceptance. --test and --justification (-j) are required; --control-id and --hostname narrow the scope
revoke <id>Revoke one. --reason (-r) is required
listList acceptances. Flags: --status <active|revoked>, --test-name, --page, --size
show <id>Show one acceptance

users​

users list and users invitations only. Inviting users, changing roles and deleting users need a signed-in browser session (Settings → Users); the server refuses them for CLI sessions, so the CLI has no commands for them.

deploy​

achilles deploy installs ProjectAchilles itself. In a terminal it opens a wizard (mode, target, prerequisites, inputs, run). With --json, or when there is no terminal, it runs headless and needs --target.

FlagDescription
--modeoperator or self-host
--targetdigitalocean, server, docker, fly, render, vercel or railway
--<input>One flag per input of the chosen target (for example --elasticsearch true for docker). Invalid or missing inputs are listed and the command exits with code 2
achilles deploy
achilles deploy --target docker --elasticsearch true --json

Quick Start​

# 1. Check connectivity and status
achilles status

# 2. Authenticate
achilles login

# 3. List your agents
achilles agents list

# 4. Check defense score
achilles analytics score

# 5. Launch AI chat for natural language interaction
achilles chat

Getting Help​

# Global help
achilles --help

# Command-specific help
achilles agents --help

# JSON-formatted help (for tooling)
achilles agents --help --json

The help system is auto-generated from command definitions, so it always reflects the current state of available commands, flags, and arguments.