Command Reference
Complete reference for all Kyuri CLI commands
Every command is kyuri <group> <command>. Run kyuri <command> --help for options.
| Group | Commands |
|---|---|
| Global flags | --json, --quiet, --wide, --show-secrets, … |
| Agent-first operation | skills, capabilities, schema config |
| Authentication | login, link, onboard, discover, plan, ci init, agent install, whoami, logout |
| Configuration | init, config validate, validate, config print |
| Jobs | job list/get/create/update/delete/run/trigger/keys |
| Runs | run list/get/permissions/status/wait/stream/cancel |
| Tests | test list/get/create/update/delete/tags/validate/run/execute/status |
| Monitors | monitor list/get/status/results/stats/create/update/delete |
| Variables, Tags | var list/get/set/upload/download/delete, tag list/create/delete |
| Analytics | analytics playwright/k6 |
| Tokens and projects | token list/create/enable/disable/revoke, project list/members |
| Notification providers | notification list/get/create/update/delete/test |
| Alerts and audit | alert history, audit |
| AI SRE | incident, sre, service |
| Monitoring-as-Code | pull, diff, deploy, destroy |
| Utilities | health, locations, upgrade, doctor |
Common tasks
| I want to | Run | Details |
|---|---|---|
| Sign in | kyuri login | Authentication |
| See what to do next in a repo | kyuri onboard | Authentication |
| Run tests locally, no account | kyuri test run --offline --all | Tests |
| Preview and publish config | kyuri diff, kyuri deploy --dry-run, then kyuri deploy | Monitoring-as-Code |
| Trigger a job from CI | kyuri job trigger <job-id> --wait | Jobs |
| Check why a run failed | kyuri run get <run-id> | Runs |
| Check monitor health | kyuri monitor status <monitor-id> | Monitors |
| Work an incident | kyuri incident list, kyuri sre ask "..." | AI SRE |
| Diagnose my setup | kyuri doctor | Utilities |
Global Flags
Available on all commands, before or after the subcommand:
kyuri --json job trigger <job-id> --wait
kyuri --quiet whoami
kyuri config validate --json| Flag | Description |
|---|---|
--json | Output in JSON format (for CI/CD scripting) |
--envelope | Include pagination metadata with JSON list results; requires --json |
--show-secrets | Disable redaction for sensitive fields in command output |
--quiet | Suppress non-essential output (only IDs and errors) |
--wide | Show tables without width limits |
--no-color | Disable ANSI colors |
--debug | Enable debug logging |
-v, --version | Show version |
Config-aware commands (for example config, diff, deploy, pull, validate, destroy) also accept --config <path> to point at a specific config file.
Delete commands (job, test, monitor, run, requirement, var, tag and notification delete) and destroy need project admin or higher.
Exit Codes
| Code | Meaning | Example |
|---|---|---|
0 | Success | Job completed successfully |
1 | General error | Test failed, monitor down |
2 | Authentication error | Invalid token, expired token |
3 | Configuration error | Missing config, invalid schema |
4 | Network / API error | API unreachable, 5xx response |
5 | Timeout | Operation exceeded timeout |
130 | Interrupted | Ctrl+C during a stream |
An operation that requires confirmation exits 3 when declined or when input closes (ABORTED), and exits 3 with CONFIRMATION_REQUIRED when confirmation is unavailable in a non-interactive session. Review its plan, then pass --force to apply the already-authorized change. Authentication errors continue to use exit code 2.
Agent-first operation
| Command | What it does | Key flags |
|---|---|---|
kyuri skills [topic] | Print the offline workflow index or a focused guide (onboarding, authoring, local, sync, configure, execute, ci, safety, investigate). Bundled with the CLI version; no credentials | — |
kyuri skills install | Write a small .agents/skills/kyuri/SKILL.md pointer. Existing skill files are preserved unless --force | --path <directory>, --force |
kyuri capabilities | Report CLI version, local workflow capabilities, and whether credentials are present | --online |
kyuri schema config | Describe the installed configuration schema without loading repository code; a field list, or the full structure with --json | --json |
kyuri skills
kyuri skills local
kyuri skills sync
kyuri skills configure
kyuri skills execute
kyuri skills investigate
kyuri capabilities --json
kyuri capabilities --online --json
kyuri schema config --json--online verifies the current API context with one request; it does not prove every server feature is available or that the token has permission for every operation.
Machine-readable plans and writes
diff --json and deploy --dry-run --json return plans on stdout. Successful deploys return per-resource results, including server-assigned IDs and the state-file path. pull --dry-run --json describes the remote resources and config path it would write. Other mutation --dry-run --json commands return the proposed request payload.
JSON errors on stderr carry a stable code agents can branch on, with retryable and suggested nextActions where useful.
| Code | Meaning |
|---|---|
AUTH_REQUIRED | No credential; run kyuri login |
TOKEN_INVALID | Credential expired, revoked or rejected; run kyuri login --reauth |
PERMISSION_DENIED | Authenticated but not allowed (role or project) |
SUBSCRIPTION_REQUIRED | No active plan; a person must choose one in the dashboard |
SPENDING_LIMIT_REACHED | The organization's spending limit blocks execution |
RATE_LIMITED / SERVICE_UNAVAILABLE | Retryable |
VALIDATION_FAILED | The request was rejected as invalid |
CONFIRMATION_REQUIRED | A write needs --force |
PAYMENT_REQUIRED | The server answered 402 without a recognised reason; run kyuri plan |
AUTHORIZATION_PENDING | login without --json or a terminal started a browser login that is not approved yet (exit 2); approve it, then run login again |
DEVICE_CODE_DENIED, DEVICE_CODE_EXPIRED, DEVICE_CODE_CONSUMED, DEVICE_LOGIN_UNVERIFIED, TOKEN_LIMIT_REACHED | Browser-login outcomes |
CONTEXT_MISMATCH | The config's API URL, organization or project does not match the logged-in context; see kyuri link |
In a non-interactive session, a write requiring confirmation refuses with exit code 3 and a CONFIRMATION_REQUIRED error. Review the preview before explicitly passing --force. The CLI checks that config organization/project match the authenticated API context before sync operations.
Deploy records returned IDs in kyuri.state.json. Share it with CI so subsequent deploys manage the same resources; do not commit the transient .lock file. Names alone do not establish ownership; pull an existing resource or set its explicit ID. Deploy does not rename local test files.
Authentication
| Command | What it does | Key flags |
|---|---|---|
kyuri login | Sign in through your browser, or store a CLI token | --token, --url, --reauth, --no-browser, --wait, --timeout |
kyuri link | Point kyuri.config.ts at the org and project you are logged in to | --dry-run, --force |
kyuri onboard | Read-only status of the current directory and the single next command | — |
kyuri discover | Bounded, read-only facts about the repository | --root <directory> |
kyuri plan | Show whether the organization has an active subscription | — |
kyuri ci init --github | Write .github/workflows/kyuri.yml | --path <file>, --force |
kyuri agent install | Install the Kyuri skill for a coding agent | --target, --path, --pointer, --force |
kyuri whoami | Show the authenticated project, organization and role | — |
kyuri logout | Clear stored credentials | — |
kyuri login
kyuri login --token <token>
kyuri whoami
kyuri logoutwhoami includes token identity and expiry when your role permits viewing API keys (user, token name, API URL, expiry). A project viewer cannot create a CLI token or sign in with the CLI, so it cannot use whoami either.
Configuration
| Command | What it does | Key flags |
|---|---|---|
kyuri init | Create kyuri.config.ts and the _kyuri_/ folder | --force, --skip-install, --skip-examples, --pm <manager> |
kyuri config validate | Validate the configuration file schema | --offline |
kyuri validate | Validate local test scripts using the same rules as Playground | — |
kyuri config print | Print the resolved configuration with environment variable expansion | --offline |
--offline validates or prints a local-only config without API credentials. Both modes require an existing config file; --offline skips cloud project identity checks. config print redacts sensitive provider values, including webhook URLs and config headers; monitor URLs remain visible and credential headers are masked.
Jobs
| Command | What it does | Key flags |
|---|---|---|
job list | List jobs in the current project | --page (1), --limit (50) |
job get <job-id> | Get job details | — |
job create | Create a job | --name (required), --tests (required), --description, --type, --schedule, --dry-run |
job update <job-id> | Update job configuration | --name, --description, --schedule, --tests (replaces the test list), --dry-run |
job delete <job-id> | Delete a job with confirmation | --force |
job run | Run a job immediately, bypassing the cron schedule | --id, --local, --cloud, --offline, --playwright-config |
job trigger <job-id> | Trigger a job with a trigger key, optionally wait | --wait, --timeout (300) |
job keys | List, create and revoke trigger keys | create --name --expires-in, delete |
Runs
| Command | What it does | Key flags |
|---|---|---|
run list | List job runs. Runs of a test executed directly (test execute) are not listed; follow those with run get <runId> or --wait | --page, --limit, --job <job-id>, --status (queued, running, passed, failed, error, blocked) |
run get <run-id> | Get run details | — |
run permissions <run-id> | Get run access permissions | — |
run status <run-id> | Quick status check | — |
run wait <run-id> | Wait for an existing run to reach a terminal state; never starts or retriggers a run | --timeout <seconds> (300) |
run stream <run-id> | Watch live console output | --idle-timeout (60, min 10) |
run cancel <run-id> | Cancel a running execution | — |
run delete <run-id> | Delete a run and its stored artifacts (active runs are refused) | --force (skip confirmation) |
dashboard | Show project dashboard metrics (monitors, jobs, runs, queue) | — |
kyuri run list --job <job-id> --status failed --limit 20
kyuri run get <run-id>
kyuri run wait <run-id> --timeout 600
kyuri run stream <run-id> --idle-timeout 120
kyuri run cancel <run-id>
kyuri run delete <run-id> --force
kyuri dashboard --jsonrun stream: failed, cancelled, blocked, or missing runs return a nonzero exit code. Ctrl-C cancels the client stream; --json emits NDJSON events. --idle-timeout is the number of seconds to wait with no data before timing out.
Analytics
| Command | What it does | Key flags |
|---|---|---|
analytics playwright | Historical Playwright job trends | --job <job-id>, --period (30, 60 or 90 days) |
analytics k6 | Historical k6 job trends | --job, --period, --left-run <run-id> --right-run <run-id> (compare two runs) |
kyuri analytics playwright --period 90 --json
kyuri analytics k6 --left-run <run-id> --right-run <run-id>Tests
| Command | What it does | Key flags |
|---|---|---|
test list | List tests | --page, --limit, --search (title), --type, --priority |
test get <test-id> | Get test details | --include-script |
test create | Create a test from a script file | --title, --file (both required), --type, --description, --priority, --dry-run |
test update <test-id> | Update a test | --title, --file, --type, --description, --priority, --dry-run |
test delete <test-id> | Delete a test with confirmation | --force |
test tags <test-id> | List tags for a test | — |
test tag add <test-id> <tags...> | Add tags (names or IDs), keeping existing tags | — |
test tag remove <test-id> <tags...> | Remove tags (names or IDs); unknown or unassigned tags are ignored | — |
test validate | Validate a script without creating it | --file, --type |
test run | Run tests locally | --file, --all, --type (browser, performance), --offline, --playwright-config |
test execute <test-id> | Execute one deployed test in the cloud; returns the run ID, or waits with --wait | --location <code>, --wait, --timeout (300) |
test status <test-id> | Stream live status events | --idle-timeout (60, min 10) |
Test types: browser, performance, api, database, custom. Priorities: low, medium, high.
Use kyuri test run --file <path> for local execution, or kyuri job trigger <id> for cloud execution.
Requirements
Requirements track what the product must do and which tests prove it. kyuri requirement (alias requirements) manages them from the terminal; you can also manage them as code with requirements[] in kyuri.config.ts (see Configuration).
| Command | What it does | Key flags |
|---|---|---|
requirement list | List requirements with coverage status | --search, --priority, --status (covered, failing, missing), --page (1), --page-size (50) |
requirement get <id> | Get a requirement with its tags, linked tests and coverage | — |
requirement create | Create a requirement | --title (required, 1-500 characters), --description, --priority, --tag, --external-id, --external-url, --test |
requirement update <id> | Update a requirement; only the flags you pass change | create flags, --clear-tags, --clear-tests |
requirement delete <id> | Delete a requirement with confirmation | --force |
requirement link <id> <test-ids...> | Link tests, keeping existing links (up to 100 per call) | — |
requirement unlink <id> <test-ids...> | Unlink tests | — |
requirement coverage [id] | Coverage for one requirement, or a count per coverage status | — |
requirement export | Export requirements as CSV to stdout or a file | --output <file>, --force |
--tag and --test repeat or take comma-separated values (up to 10 tags of 50 characters, and 100 tests). On update they replace the whole set; --clear-tags and --clear-tests empty it and cannot be combined with them. Requirement tags that do not exist yet are created by the server. export refuses to overwrite a file unless you pass --force, never writes through a symbolic link, and leaves the file readable only by you. With --json and no --output, it prints { "format": "csv", "content": "..." }.
Extracting requirements from an uploaded document (PDF, DOCX, Markdown or TXT) with AI is available in the dashboard only. The CLI and MCP server do not upload documents.
Monitors
| Command | What it does | Key flags |
|---|---|---|
monitor list | List all monitors | --page, --limit |
monitor get <monitor-id> | Get monitor details | — |
monitor status <monitor-id> | Current status (quick view) | — |
monitor results <monitor-id> | Recent check results | --page (1), --limit (20) |
monitor stats <monitor-id> | Performance statistics | — |
monitor create | Create a monitor | --name (required), --url, --type, --test-id, --port, --protocol, --interval-minutes, --timeout, --method, --dry-run |
monitor update <monitor-id> | Update a monitor | --name, --url, --interval-minutes, --timeout, --method, --active, --dry-run |
monitor delete <monitor-id> | Delete with confirmation | --force |
Variables
| Command | What it does | Key flags |
|---|---|---|
var list | List project variables | — |
var get <key> | Get a variable by key | — |
var set <key> <value> | Create or update a variable | --secret, --value-stdin, --description |
var upload <key> <file> | Create a file variable (.csv, .json, .txt, .tsv, .xml, .yaml, .yml; max 5 MB) | --description |
var download <key> | Print a file variable's content, or save it to a new file (owner-only permissions on macOS and Linux) | --out <path>, --force (overwrite an existing file) |
var delete <key> | Delete a variable | --force |
--secret encrypts the value. Prefer --value-stdin for secrets so they do not end up in shell history or process arguments.
Tags
| Command | What it does | Key flags |
|---|---|---|
tag list | List tags | — |
tag create <name> | Create a tag | --color |
tag delete <id> | Delete a tag | --force |
kyuri tag create <name> --color "#3B82F6"
kyuri tag delete <id> --force # Skip confirmationNotification Providers
notifications is an alias for notification.
| Command | What it does | Key flags |
|---|---|---|
notification list | List providers | — |
notification get <id> | Get provider details | — |
notification create | Create a provider | --type, --name (both required), --payload |
notification update <id> | Update a provider | --name, --type, --payload |
notification delete <id> | Delete a provider | --force |
notification test | Send a test notification | --type, --payload (one payload option required) |
Types: email, slack, webhook, telegram, discord, teams. --payload is a JSON object; --data and --config are aliases.
Alerts & Audit
alerts is an alias for alert.
| Command | What it does | Key flags |
|---|---|---|
alert history | View alert history | --page (1), --limit (50) |
audit | View audit logs (admin only) | --page (1), --limit (20), --search (by action), --action (filter by action type) |
kyuri alert history --page 2 --limit 20
kyuri audit --page 2 --limit 50 --action "notification_provider_created"
kyuri audit --search "deploy"Tokens and projects
| Command | What it does | Key flags |
|---|---|---|
token list | List the project's CLI tokens | — |
token create <name> | Create a CLI token; the key is shown once, so this requires the global --show-secrets flag and does not accept --quiet | --expires-in <days> (1-365; never past the expiry of the token you are using) |
token enable <id> / token disable <id> | Enable or disable a token | — |
token revoke <id> | Permanently revoke a token | --force (skip confirmation) |
project list | List projects visible to the token | — |
project members [projectId] | List members and roles of a project (default: the current one) | — |
Changing members, invitations and project creation rejects CLI tokens and is available in the dashboard only. Tokens are project-scoped, so project list shows only the token's project.
AI SRE
AI SRE commands use the active project from the CLI token and follow your role's permissions. Plural aliases incidents and services are also supported.
| Command | What it does | Key flags |
|---|---|---|
incident list | List incidents (status label, assignee and acknowledgement shown) | --status, --severity, --assignee me|unassigned|<user-id> |
incident get <ref> | Get an incident | — |
incident timeline <ref> | Incident timeline | — |
incident assign <ref> | Assign the incident, or its commander, to a project editor or admin | --user <user-id|me> (required), --commander |
incident unassign <ref> | Clear the assignee (or commander) | --commander |
incident ack <ref> | Acknowledge an incident | — |
incident resolve <ref> | Resolve with a required summary | --summary (--comment is an alias), --force |
sre triage <ref> | Classify an incident | — |
sre investigate <ref> | Start an asynchronous deep investigation | --live-connectors |
sre brief <ref> | Stream an evidence brief | --idle-timeout |
sre ask "<question>" | Ask Copilot (read-only) | --incident <ref>, --live-connectors, --idle-timeout |
sre status <runId> | Follow a triage or accepted investigation | — |
service list/get/health/dependencies | Read-only service catalog | needs sre_service:view |
<ref> is the number shown by incident list or a UUID. Numbers resolve within the CLI token's project; they are not row positions. Use incident list --json to see UUIDs. Manual triage and investigations need a configured AI provider; 503 feature_disabled means an operator turned the feature off.
Incidents
kyuri incident list --status investigating --severity sev1
kyuri incident list --status open # every incident that is not resolved
kyuri incident get <incident-number-or-uuid>
kyuri incident timeline <incident-number-or-uuid>
kyuri incident list --assignee me
kyuri incident assign <incident-number-or-uuid> --user me
kyuri incident ack <incident-number-or-uuid>
kyuri incident resolve <incident-number-or-uuid> --summary "Traffic restored after rollback"The Status column shows the display label (Triggered, Acknowledged, Investigating, Fixing, Monitoring, Resolved), also returned as statusLabel with --json. --status filters on the stored values: open, triggered, investigating, identified, recommendations_ready, user_applying_fix, verifying, resolved.
Resolution prompts for confirmation and stores the required summary in the incident timeline and audit log. Use --force only in reviewed automation.
Triage and investigation
kyuri sre triage <incident-number-or-uuid>
kyuri sre investigate <incident-number-or-uuid>
kyuri sre investigate <incident-number-or-uuid> --live-connectors
kyuri sre brief <incident-number-or-uuid>
kyuri sre brief <incident-number-or-uuid> --idle-timeout 120
kyuri sre status <runId>Deep investigation is asynchronous: a successful command returns an accepted investigation-run ID. Follow progress with incident get and incident timeline, or sre status <runId>. --live-connectors enables configured read-only telemetry tools and requires the sre_connector:investigate permission; without it the request is rejected with 403.
Copilot
kyuri sre ask "Why did checkout latency increase?"
kyuri sre ask "Summarize the strongest evidence" --incident <incident-number-or-uuid>
kyuri sre ask "Check current telemetry" --incident <incident-number-or-uuid> --live-connectorsCopilot is read-only. Use an incident your token can access, and add --live-connectors only when you have connector investigation permission. --idle-timeout controls stream inactivity (minimum 10 seconds). Ctrl-C cancels the client stream. Global --json emits NDJSON events for automation. Streamed errors and AI-provider unavailability return a nonzero exit code for both Copilot and evidence briefs.
Service catalog
kyuri service list
kyuri service get <service-id>
kyuri service health <service-id>
kyuri service dependencies <service-id>These commands are read-only and require sre_service:view.
Monitoring-as-Code
| Command | What it does | Key flags |
|---|---|---|
pull | Pull remote resources into local config and files | --dry-run, --force, --tests-only, --config-only |
diff | Preview changes between local config and server state | --delete |
deploy | Push configuration to the API | --dry-run, --delete, --no-delete, --force, --verify, --verify-timeout <seconds> |
destroy | Tear down all managed resources defined with IDs in the local config, including notification providers, requirements and status pages | --dry-run, --force |
kyuri destroy requires --force to confirm deletion, or --dry-run to preview. Bare kyuri destroy errors without --force.
diff and deploy preserve remote resources absent from config by default. Use diff --delete to preview pruning, then deploy --delete to apply it. Pruning includes resources created outside this config. --force skips the confirmation prompt; keep test scripts as editable source files and review kyuri diff before deploying.
Utilities
| Command | What it does | Key flags |
|---|---|---|
health | Check API health | --url |
locations | List available execution locations | — |
upgrade | Upgrade the CLI to the latest release | --tag <tag>, --package-manager <pm>, -y, --yes, --dry-run |
doctor | Check dependencies and configuration | --strict, --fix |
upgrade --tag defaults to latest and accepts explicit versions; --dry-run previews the upgrade command without executing.