Iris
CLI & CI/CD

CLI reference

Trigger Iris test runs from any pipeline with the iris CLI.

The iris CLI (@iris/cli) triggers runs against an Iris instance, waits for them to finish, and exits with a code your pipeline can gate on. No install needed:

# Run all enabled tests in a project
npx @iris/cli run --url https://your-iris-instance.com --key iris_... --project <projectId>

# Run a single test
npx @iris/cli run --url https://your-iris-instance.com --key iris_... --test <testId>

iris run

Triggers a project suite or a single test, polls until every queued run reaches a terminal state, prints per-run results and a summary, then exits.

Options

OptionEnv varDefaultDescription
--project <id>Project ID — runs all enabled tests in the project
--test <id>Test ID — runs a single test
--url <url>IRIS_URLIris API base URL
--key <key>IRIS_KEYAPI key (iris_...) — see API keys
--poll <ms>3000Poll interval in milliseconds (minimum 1000)
--timeout <ms>600000Maximum wait time (10 minutes)

--url/--key fall back to the IRIS_URL/IRIS_KEY environment variables, which is the recommended way to pass them in CI. Exactly one of --project or --test is required.

Exit codes

CodeMeaning
0All runs passed
1Any run failed or was cancelled, a trigger error occurred, or the timeout was hit

Disabled tests are skipped when triggering with --project — only enabled tests are queued.

See GitHub Actions for a ready-to-paste workflow.

On this page