Kyuri Docs

Command Reference

Complete reference for all Kyuri CLI commands

Every command is kyuri <group> <command>. Run kyuri <command> --help for options.

GroupCommands
Global flags--json, --quiet, --wide, --show-secrets, …
Agent-first operationskills, capabilities, schema config
Authenticationlogin, link, onboard, discover, plan, ci init, agent install, whoami, logout
Configurationinit, config validate, validate, config print
Jobsjob list/get/create/update/delete/run/trigger/keys
Runsrun list/get/permissions/status/wait/stream/cancel
Teststest list/get/create/update/delete/tags/validate/run/execute/status
Monitorsmonitor list/get/status/results/stats/create/update/delete
Variables, Tagsvar list/get/set/upload/download/delete, tag list/create/delete
Analyticsanalytics playwright/k6
Tokens and projectstoken list/create/enable/disable/revoke, project list/members
Notification providersnotification list/get/create/update/delete/test
Alerts and auditalert history, audit
AI SREincident, sre, service
Monitoring-as-Codepull, diff, deploy, destroy
Utilitieshealth, locations, upgrade, doctor

Common tasks

I want toRunDetails
Sign inkyuri loginAuthentication
See what to do next in a repokyuri onboardAuthentication
Run tests locally, no accountkyuri test run --offline --allTests
Preview and publish configkyuri diff, kyuri deploy --dry-run, then kyuri deployMonitoring-as-Code
Trigger a job from CIkyuri job trigger <job-id> --waitJobs
Check why a run failedkyuri run get <run-id>Runs
Check monitor healthkyuri monitor status <monitor-id>Monitors
Work an incidentkyuri incident list, kyuri sre ask "..."AI SRE
Diagnose my setupkyuri doctorUtilities

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
FlagDescription
--jsonOutput in JSON format (for CI/CD scripting)
--envelopeInclude pagination metadata with JSON list results; requires --json
--show-secretsDisable redaction for sensitive fields in command output
--quietSuppress non-essential output (only IDs and errors)
--wideShow tables without width limits
--no-colorDisable ANSI colors
--debugEnable debug logging
-v, --versionShow 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

CodeMeaningExample
0SuccessJob completed successfully
1General errorTest failed, monitor down
2Authentication errorInvalid token, expired token
3Configuration errorMissing config, invalid schema
4Network / API errorAPI unreachable, 5xx response
5TimeoutOperation exceeded timeout
130InterruptedCtrl+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

CommandWhat it doesKey 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 installWrite a small .agents/skills/kyuri/SKILL.md pointer. Existing skill files are preserved unless --force--path <directory>, --force
kyuri capabilitiesReport CLI version, local workflow capabilities, and whether credentials are present--online
kyuri schema configDescribe 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.

CodeMeaning
AUTH_REQUIREDNo credential; run kyuri login
TOKEN_INVALIDCredential expired, revoked or rejected; run kyuri login --reauth
PERMISSION_DENIEDAuthenticated but not allowed (role or project)
SUBSCRIPTION_REQUIREDNo active plan; a person must choose one in the dashboard
SPENDING_LIMIT_REACHEDThe organization's spending limit blocks execution
RATE_LIMITED / SERVICE_UNAVAILABLERetryable
VALIDATION_FAILEDThe request was rejected as invalid
CONFIRMATION_REQUIREDA write needs --force
PAYMENT_REQUIREDThe server answered 402 without a recognised reason; run kyuri plan
AUTHORIZATION_PENDINGlogin 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_REACHEDBrowser-login outcomes
CONTEXT_MISMATCHThe 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

CommandWhat it doesKey flags
kyuri loginSign in through your browser, or store a CLI token--token, --url, --reauth, --no-browser, --wait, --timeout
kyuri linkPoint kyuri.config.ts at the org and project you are logged in to--dry-run, --force
kyuri onboardRead-only status of the current directory and the single next command—
kyuri discoverBounded, read-only facts about the repository--root <directory>
kyuri planShow whether the organization has an active subscription—
kyuri ci init --githubWrite .github/workflows/kyuri.yml--path <file>, --force
kyuri agent installInstall the Kyuri skill for a coding agent--target, --path, --pointer, --force
kyuri whoamiShow the authenticated project, organization and role—
kyuri logoutClear stored credentials—
kyuri login
kyuri login --token <token>
kyuri whoami
kyuri logout

whoami 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

CommandWhat it doesKey flags
kyuri initCreate kyuri.config.ts and the _kyuri_/ folder--force, --skip-install, --skip-examples, --pm <manager>
kyuri config validateValidate the configuration file schema--offline
kyuri validateValidate local test scripts using the same rules as Playground—
kyuri config printPrint 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

CommandWhat it doesKey flags
job listList jobs in the current project--page (1), --limit (50)
job get <job-id>Get job details—
job createCreate 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 runRun 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 keysList, create and revoke trigger keyscreate --name --expires-in, delete


Runs

CommandWhat it doesKey flags
run listList 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)
dashboardShow 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 --json

run 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

CommandWhat it doesKey flags
analytics playwrightHistorical Playwright job trends--job <job-id>, --period (30, 60 or 90 days)
analytics k6Historical 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

CommandWhat it doesKey flags
test listList tests--page, --limit, --search (title), --type, --priority
test get <test-id>Get test details--include-script
test createCreate 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 validateValidate a script without creating it--file, --type
test runRun 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).

CommandWhat it doesKey flags
requirement listList 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 createCreate 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 changecreate 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 exportExport 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

CommandWhat it doesKey flags
monitor listList 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 createCreate 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

CommandWhat it doesKey flags
var listList 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

CommandWhat it doesKey flags
tag listList 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 confirmation

Notification Providers

notifications is an alias for notification.

CommandWhat it doesKey flags
notification listList providers—
notification get <id>Get provider details—
notification createCreate a provider--type, --name (both required), --payload
notification update <id>Update a provider--name, --type, --payload
notification delete <id>Delete a provider--force
notification testSend 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.

CommandWhat it doesKey flags
alert historyView alert history--page (1), --limit (50)
auditView 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

CommandWhat it doesKey flags
token listList 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 listList 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.

CommandWhat it doesKey flags
incident listList 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/dependenciesRead-only service catalogneeds 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-connectors

Copilot 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

CommandWhat it doesKey flags
pullPull remote resources into local config and files--dry-run, --force, --tests-only, --config-only
diffPreview changes between local config and server state--delete
deployPush configuration to the API--dry-run, --delete, --no-delete, --force, --verify, --verify-timeout <seconds>
destroyTear 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

CommandWhat it doesKey flags
healthCheck API health--url
locationsList available execution locations—
upgradeUpgrade the CLI to the latest release--tag <tag>, --package-manager <pm>, -y, --yes, --dry-run
doctorCheck dependencies and configuration--strict, --fix

upgrade --tag defaults to latest and accepts explicit versions; --dry-run previews the upgrade command without executing.

On this page