Commands Reference
This page documents all Flakiness CLI commands. For authentication commands, see Authentication.
View a local Flakiness report in the browser.
flakiness show [path]Arguments:
[path]— Path to a Flakiness report file or a folder containingreport.json(default:flakiness-report)
Options:
-e, --viewer-url <url>— Report viewer URL (default:https://report.flakiness.io, env:FLAKINESS_ENDPOINT)
Example:
flakiness showflakiness show ./run-123access Auth required
Section titled “access ”Check your access to a Flakiness.io project.
flakiness access --project <org/project>Options:
--project <org/project>— Flakiness.io project slug, required (env:FLAKINESS_PROJECT)-t, --access-token <token>— Access token (env:FLAKINESS_ACCESS_TOKEN)-e, --endpoint <url>— Service endpoint (default:https://flakiness.io, env:FLAKINESS_ENDPOINT)--json— Output result as JSON-q, --quiet— Suppress output, only set exit code
Exits with code 1 if access is denied.
Example:
flakiness access --project myorg/myprojectupload Auth required
Section titled “upload ”Upload Flakiness report(s) to the Flakiness.io service.
flakiness upload <relative-paths...>Arguments:
<relative-paths...>— One or more paths to Flakiness report files or directories
Options:
--project <org/project>— Flakiness.io project slug; overrides the project embedded in the report (env:FLAKINESS_PROJECT)-t, --access-token <token>— Access token (env:FLAKINESS_ACCESS_TOKEN)-e, --endpoint <url>— Service endpoint (default:https://flakiness.io, env:FLAKINESS_ENDPOINT)
| Upload Method | Status | Guide |
|---|---|---|
| GitHub OIDC | Supported | GitHub Actions |
| Access Token | Supported | GitHub Actions |
| Other CI | Supported | Other CI Providers |
Example:
flakiness upload ./flakiness-report/report.jsondownload Auth required
Section titled “download ”Download Flakiness reports from the Flakiness.io service.
flakiness download --project <org/project>Options:
--project <org/project>— Flakiness.io project slug, required (env:FLAKINESS_PROJECT)--run-id <runId>— Download a specific run by its ID--since <date>— Download all runs uploaded since the specified date-j, --parallel <number>— Number of parallel downloads (default: 1)-t, --access-token <token>— Access token (env:FLAKINESS_ACCESS_TOKEN)-e, --endpoint <url>— Service endpoint (default:https://flakiness.io, env:FLAKINESS_ENDPOINT)
Downloaded reports are saved to run-<runId>/ directories, each containing:
report.json— The Flakiness report fileattachments/— Directory with all attachments (if any)
Already-downloaded runs are skipped automatically.
Examples:
# Download a specific runflakiness download --project myorg/myproject --run-id 123
# Download all runs since a dateflakiness download --project myorg/myproject --since 2024-01-01
# Download with parallel processingflakiness download --project myorg/myproject --since 2024-01-01 --parallel 4list tests Auth required
Section titled “list tests ”Query test data from the Flakiness.io platform.
flakiness list tests --project <org/project> [options]By default, queries the default branch and shows tests from the day of its head commit (in the project’s timezone). Use --pr to query a specific pull request (shows tests from the merge-commit of the PR into the target branch), or --branch to query a named branch (shows tests from the day of its head commit).
When querying a PR with --pr, the status values have specific meaning:
regressed— test was passing on the target branch but fails in this PR (caused by the PR)failed— test also fails on the target branch (pre-existing failure, not caused by the PR)flaked— test failed but passed on retry (flaky)
Options:
--project <org/project>— Flakiness.io project slug, required (env:FLAKINESS_PROJECT)--pr <number>— Show tests from a specific pull request (mutually exclusive with--branch)--branch <name>— Show tests from a specific branch (mutually exclusive with--pr)--fql <query>— FQL filter expression--sort <axis>— Sort axis:outcome,flip_rate,duration,duration_trend,name(default:outcome)--sort-dir <dir>— Sort direction:ascordesc(default:desc)--page <n>— Page number, 1-based (default: 1)--page-size <n>— Tests per page, 1–300 (default: 20)-t, --access-token <token>— Access token (env:FLAKINESS_ACCESS_TOKEN)-e, --endpoint <url>— Service endpoint (default:https://flakiness.io, env:FLAKINESS_ENDPOINT)
Output includes each test’s name, file location, environment, status, duration, flip rate, and errors.
Examples:
# List all tests sorted by outcome (default branch)flakiness list tests --project myorg/myproject
# Find regressions caused by PR #42flakiness list tests --project myorg/myproject --pr 42 --fql 's:regressed'
# Show all broken tests in a PR (regressions + pre-existing failures)flakiness list tests --project myorg/myproject --pr 42 --fql 'status:(failed, regressed)'
# Show tests from a feature branchflakiness list tests --project myorg/myproject --branch feature/login
# Find flaky testsflakiness list tests --project myorg/myproject --fql 'flip>0%' --sort flip_rate --sort-dir desc
# Find failed tests in e2e filesflakiness list tests --project myorg/myproject --fql 's:failed f:e2e'
# Find slow testsflakiness list tests --project myorg/myproject --fql 'd>5s' --sort duration --sort-dir desc
# Find tests by error messageflakiness list tests --project myorg/myproject --fql '$timeout'
# Combine filters: failed e2e tests, excluding smoke-taggedflakiness list tests --project myorg/myproject --fql 's:failed f:e2e -#smoke'See the FQL reference for the full filter syntax.
convert-junit
Section titled “convert-junit”Convert JUnit XML report(s) to Flakiness report format.
flakiness convert-junit <junit-root-dir-path>Arguments:
<junit-root-dir-path>— Path to JUnit XML file or directory containing XML files
Options:
--output-dir <dir>— Output directory for the report (default:flakiness-report)--env-name <name>— Environment name for the report (default:junit)--commit-id <id>— Git commit ID (auto-detected if not provided)--project <org/project>— Flakiness.io project slug for OIDC uploads (env:FLAKINESS_PROJECT)
Example:
flakiness convert-junit ./test-results --env-name ci --output-dir ./flakiness-reportflakiness upload ./flakiness-report/report.jsonSee the JUnit XML test runner guide for more details.
skills install
Section titled “skills install”Install bundled skills for AI coding agents. See Agentic Workflows for details.
flakiness skills install --agent <claude|codex|cursor>Options:
--agent <agent>— Target agent:claude,codex, orcursor