Agentiqa Docs
CLI

CLI reference

Every agentiqa command, flag, environment variable, and exit code — generated from the typed CLI schema.

Agentiqa CLI — AI-powered testing for web apps.

Commands

CommandSummary
agentiqa exploreTest a web app with an AI agent
agentiqa runExecute saved test plans
agentiqa loginAuthenticate with Agentiqa (opens browser)
agentiqa logoutRemove stored credentials
agentiqa whoamiShow the current authenticated user

explore

Test a web app with an AI agent.

agentiqa explore "<prompt>" [flags]

FlagDescription
--url <url>Web URL to test. Optional when logged in with a single project — the CLI reuses that project's URL.
--feature <text>What was built, from the user's perspective.
--hint <text>A specific thing to test. (repeatable)
--known-issue <text>Something the agent should NOT report. (repeatable)
--credential <name:secret>A login credential to hand the agent. (repeatable)
--dry-runCheck the engine and exit without running the agent.
--no-artifactsDon't save screenshots/video to the temp directory.
--verboseShow raw observations and actions.
--auto-approveAuto-approve scope and plan checkpoints (required for non-interactive runs).
--jsonEmit machine-readable JSON on stdout (schemaVersion 1).
--format <text|json>Explicit output format; overrides the AG_OUTPUT env var.

run

Execute saved test plans.

agentiqa run --url <url> --plan <path.json> [flags]

FlagDescription
--url <url>Target URL (required with --plan; deprecated with a service key).
--plan <path>Path to a test plan JSON (required without a service key).
--plan-id <id>Run a single saved plan by id (service-key mode).
--label-ids <a,b,c>Run every plan tagged with any of these labels (csv, service-key mode).
--label-id <id>Alias for --label-ids. (deprecated)
--mode <sequential|parallel>Execution order for the selected plans (default: sequential).
--artifacts-dir <path>Directory for run artifacts (default: a temp directory).
--no-artifactsDon't save video/frame artifacts.
--shareMint an opt-in PUBLIC, revocable share link for each cloud run (added to the JSON envelope as shareUrl per plan) so a reviewer can open the run without an Agentiqa login. Cloud runs only; a no-op with a warning otherwise. Equivalent to AG_SHARE=1.

login

Authenticate with Agentiqa (opens browser).

agentiqa login [--no-browser]

FlagDescription
--no-browserDon't open a browser — print the auth URL to visit instead.

logout

Remove stored credentials.

agentiqa logout

No command-specific flags.

whoami

Show the current authenticated user.

agentiqa whoami

No command-specific flags.

Common flags

Accepted by every command.

FlagDescription
--engine <url>Engine URL (default: auto-start in-process). When set, Playwright/Chromium and ffmpeg are not required locally — the remote engine drives the browser and CLI run artifacts download the engine-rendered video when available (a local ffmpeg render is only used as a fallback). Customer-facing usage authenticates via AGENTIQA_SERVICE_KEY alone (a short-lived engine credential is minted automatically).
--helpShow this help and exit.
--versionPrint the CLI version and exit.

Environment variables

VariableDescription
AGENTIQA_API_URLOverride the Agentiqa control-plane API (default: https://agentiqa.com).
AGENTIQA_SERVICE_KEYService key for unattended runs (CI). Replaces interactive login and unlocks hosted engine access — no separate engine token required.
AGENTIQA_ENGINE_TOKENOptional internal bearer override for hosted engine HTTP + WebSocket calls. Only needed for internal infra; customer-facing CI should rely on AGENTIQA_SERVICE_KEY instead.
AG_OUTPUTSet to "json" to enable JSON output mode globally (equivalent to --json). Use --format text to override.
AG_SHARESet to a truthy value (anything other than 0/false/empty) to enable public share links for cloud runs (equivalent to --share).
AGENTIQA_UPDATE_CHECKSet to "0" to disable the "Update available" check (a cached, fire-and-forget npm dist-tags lookup; sends no user data). Also disabled by { "updateCheck": false } in ~/.agentiqa/config.json.

Exit codes

CodeMeaning
0Success — all selected plans passed (or there was nothing to run).
1Plan failure — plans executed, at least one failed.
2Usage / configuration error (bad flags, not authenticated, a selector that matched no plans, or a project with no plans to run), OR a persistent account-state block (quota / org run-cap exhausted). Nothing ran — retrying cannot help.
3Infra / runtime error (engine unreachable, auth/exchange failure, a no-verdict batch, or an unexpected internal error) — a correct, entitled invocation could not reach a verdict, so it is safe for CI to retry.

JSON output

With --json or AG_OUTPUT=json:

  • Every JSON document includes "schemaVersion": 1 at the top level.
  • Success: { "ok": true, "schemaVersion": 1, ...commandFields }
  • Failure: { "ok": false, "schemaVersion": 1, "error": { "code": "...", "message": "..." } }
  • All log lines go to stderr; stdout contains exactly one JSON document.
  • ANSI color is disabled when --json is active or stdout is not a TTY.

On this page