AgentProbe ships with 80+ CLI commands. This reference covers the most commonly used ones.
Run agentprobe --help for the full list, or agentprobe <command> --help for details on any command.
Run test suite(s) from YAML file(s).
agentprobe run <path> # Run tests from file or directory
agentprobe run tests/ # Run all tests in directory
agentprobe run tests/ -f json # Output as JSON
agentprobe run tests/ -f junit # JUnit XML for CI
agentprobe run tests/ -t smoke # Filter by tag
agentprobe run tests/ -g "booking" # Filter by group name
agentprobe run tests/ -w # Watch mode: re-run on file changes
agentprobe run tests/ --coverage # Show tool coverage report
agentprobe run tests/ -r # Find all YAML files recursivelyOptions:
| Flag | Description |
|---|---|
-f, --format <fmt> |
Output format: console, json, markdown |
-o, --output <path> |
Write results to file |
-w, --watch |
Watch mode: re-run tests on file change |
-u, --update-snapshots |
Update snapshot files |
-t, --tag <tags...> |
Filter tests by tags |
-g, --group <name> |
Filter tests by group name |
--coverage |
Show tool coverage report |
--tools <tools...> |
Declared tools for coverage (space-separated) |
--compare-baseline |
Compare results against saved baseline |
--env-file <path> |
Load environment variables from a .env file |
--badge <path> |
Generate a shields.io-style badge SVG |
--profile <name> |
Use an environment profile from .agentproberc.yml |
--theme <name> |
Theme for HTML reports: dark, corporate, minimal |
--trace-dir <dir> |
Watch trace directory (with --watch) |
-r, --recursive |
Find all .yaml/.yml files recursively in directories |
Record an agent execution trace for replay and test generation.
agentprobe record -s agent.js # Record agent script
agentprobe record -s agent.js -o trace.json # Save trace to fileReplay a recorded trace and validate expectations.
agentprobe replay trace.json # Replay and verifyCreate an example test file (interactive or quick).
agentprobe init # Interactive setup
agentprobe init -y # Quick setup with defaultsGenerate YAML tests from a recorded trace.
agentprobe codegen trace.json # Generate YAML tests
agentprobe codegen trace.json -o tests/ # Output to directoryValidate a test suite YAML or trace JSON without running it.
agentprobe validate tests.yaml # Validate test suite
agentprobe validate trace.json # Validate trace fileGenerate a security test suite with built-in attack patterns.
agentprobe generate-security # Generate security tests
agentprobe generate-security -o tests/security.yaml # Output to fileRun chaos testing against agent traces.
agentprobe chaos chaos-config.yaml # Run chaos scenarios from config
agentprobe chaos chaos-config.yaml --scenario tool_failure # Run specific scenario
agentprobe chaos tests.yaml --config chaos.yaml # Use separate chaos configNote: The test file must contain a
chaos.scenariosarray. If the file doesn't have chaos configuration, useagentprobe runfor normal tests.
Check traces against compliance policies.
agentprobe compliance traces/ --policy policy.yaml # Check against a policyConvert a trace from external format (OpenAI/Anthropic/LangChain/JSONL) to AgentTrace.
agentprobe convert trace.json # Auto-detect source format
agentprobe convert trace.json -f openai # Specify source format
agentprobe convert trace.json -o out.json # Output to fileOptions:
| Flag | Description |
|---|---|
-f, --from <format> |
Source format (auto-detect if omitted) |
-o, --output <path> |
Output file (stdout if omitted) |
Analyze trace performance: latency percentiles, cost, bottlenecks.
agentprobe profile traces/ # Profile all traces in directoryAnalyze all traces in a directory and show summary statistics.
agentprobe stats traces/ # Show trace summary statisticsCompare two test run JSON reports side-by-side.
agentprobe diff run1.json run2.json # Compare two runsGenerate CI/CD workflow templates.
agentprobe ci github-actions # GitHub Actions workflow
agentprobe ci gitlab # GitLab CI config
agentprobe ci azure-pipelines # Azure Pipelines
agentprobe ci jenkins # JenkinsfileGenerate a static HTML test dashboard.
agentprobe portal reports/ -o report.html # HTML dashboardCheck connectivity to LLM adapters.
agentprobe health # Check adapter healthMCP (Model Context Protocol) server — expose AgentProbe as tools for AI agents.
agentprobe mcp serve # Start MCP server
agentprobe mcp tools # List available tools
agentprobe mcp config # Show configGolden test pattern — record and verify reference runs.
agentprobe golden record <suite> # Record golden reference
agentprobe golden verify <suite> # Verify against goldenList available assertion templates.
agentprobe templates # Show all templates| Flag | Description |
|---|---|
--help |
Show help |
--version |
Show version |
--config <path> |
Path to config file |
--quiet |
Suppress non-error output |
--no-color |
Disable colored output |