
cypress-cloud-cli
Runs the cy-cloud CLI to inspect Cypress Cloud organizations, projects, runs, specs, tests, failure screenshots, and Test Replay data. Use when the user mentions Cypress Cloud, cy-cloud, cypress-cloud-cli, a Cloud run or test URL, failing or flaky Cypress tests, Test Replay, run triage, Cloud artifacts, or asks why a recorded test failed.
- Installs
- 1.8K
- Last 24h
- +27
- Trending rank
- #4681
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/cypress-io/ai-toolkit --skill cypress-cloud-cli- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads cypress-cloud-cli automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Cypress Cloud CLI
Use cy-cloud directly to investigate Cypress Cloud. Execute the commands, inspect their JSON, and
report conclusions supported by the returned data. Do not send the user to the Cloud UI when the CLI
can answer the question.
Start safely
The published binary requires Node.js 22.21.0 or newer.
Run these checks only on first use, when the environment is unknown, or after an installation or
authentication error. If cy-cloud already worked in this session, invoke the investigation command
directly instead of spending another turn rechecking the setup.
node --version
cy-cloud status
cy-cloud --help
Assume cy-cloud is already installed and available on PATH. Run it from the user's current
workspace; do not locate, clone, build, or depend on the cloud-cli source repository. If the command
is unavailable, stop and report the missing prerequisite. The user can install it with:
npm install -g @cypress/cloud
If unauthenticated, ask the user to choose an authentication method:
cy-cloud login # interactive OAuth
cy-cloud login --token "$PAT" # persist a Personal Access Token
For CI or an existing environment, CYPRESS_CLOUD_TOKEN takes precedence over stored credentials
and writes no credential file.
Never print, echo, read back, or commit tokens. Never inspect
~/.config/cy-cloud/auth.json or cypress.env.json; use cy-cloud status.
The organization must have the Cypress Cloud CLI integration enabled. A response saying it is not enabled requires action from an organization administrator; it cannot be fixed with another CLI command.
Discover instead of guessing
Every command supports:
cy-cloud --help
cy-cloud <command> --help
cy-cloud <command> --schema
Treat cy-cloud --help as authoritative for available commands, per-command --help as
authoritative for arguments, and --schema as the intended response contract. Use them before
constructing a query when a command, flag, or field is uncertain. Do not memorize a command
inventory from this skill; the installed CLI may be newer or older than these instructions.
Validate the actual response too: run get can return a fractional duration, and
replay info.failedAt can be a fractional epoch even when the schema declares an integer. Treat
those values as numbers and report the schema mismatch if it matters; do not discard or round the
data.
Successful data commands write JSON to stdout. Parse that JSON directly; do not install a JSON tool to run this skill. Replay download progress is written to stderr, so never combine stderr with stdout before parsing JSON:
cy-cloud replay timeline --testId <uuid> --attempt <failedAttemptNumber> 2>/dev/null
If a command fails, rerun without suppressing stderr. Argument-validation errors can appear on stdout; command execution errors appear on stderr. Both exit with status 1.
Cloud-backed fetches may be blocked by security sandboxes even when local commands such as status
succeed. Run Cloud data commands with network access allowed. If a fetch fails with a sandbox or
network denial, retry that same command with broader network permission before diagnosing a CLI,
authentication, or Cloud problem.
Replay downloads are cached on disk. Confirm the location with cy-cloud cache info (.location)
and run Cloud commands so that directory can be written and still exists later in this session. An
ephemeral sandbox that cannot persist it will re-download replay data or fail cache validation,
including on otherwise local commands. Do not relocate the cache into the user's project.
Cloud API calls are rate limited per user. Prefer considered, methodical requests: reuse
identifiers already in a URL or prior response, skip org and project discovery when an ID is
known, and do not page further than the question requires. After the first replay download for a
test, replay info and replay timeline run against the local cache and do not count against
that limit, so those follow-up queries can be chatty. If a command reports an exceeded rate
limit, stop issuing Cloud-backed requests and report the limit; do not retry in a tight loop.
Identifiers and pagination
For projectId, use the project identifier already present in a Cloud URL; both the short slug and
the project UUID are accepted by project/run lookups and run-scoped spec/test lists. Do not perform
organization and project discovery merely to replace a UUID with a slug. runNumber is the
per-project run number. specId and testId are UUIDs. Attempt numbers are 1-indexed, matching
Cypress Cloud.
Cloud list responses have .pagination; request more pages when the question is not limited to the
first page.
Route by task
Read only the references required for the current task:
- Find orgs, projects, runs, specs, or tests, or open a Cloud URL: read investigation.md.
- Inspect attempts, flakes, or failure screenshots: read investigation.md.
- Query Test Replay: read investigation.md and test-replay.md.
- Inspect the app itself (DOM, ARIA, computed styles, a live screenshot) at a moment in the test, or find which command changed an element: read replay-view.md.
- Diagnose why a recorded test failed: read investigation.md, test-replay.md, replay-view.md when the timeline alone does not explain the symptom, and diagnosis.md.
Cache and common recovery
cy-cloud cache info
cy-cloud cache cleanup
cy-cloud cache clear
Use cache cleanup for normal maintenance. Use cache clear only when replay resolution appears
stale or corrupted because it forces future replay downloads. If replay re-downloads every
command, the cache directory is not persisting; retry with a sandbox that can write to the
location reported by cache info.
Common outcomes:
- Missing expected fields: inspect that command's
--schema. - JSON parse failure: ensure stderr was not merged into stdout.
- Cache validation or write errors from the sandbox: retry so the cache directory is writable and persistent; do not copy the cache into the project.
cy-cloud versionreporting"status": "Unknown"does not by itself mean the installation is broken or outdated. CompareversionandlatestVersion; upgrade only when those values or an explicit compatibility error indicate it.- Exceeded rate limit: stop Cloud-backed requests and report the limit; do not retry in a loop. Cached replay queries are exempt once the download has succeeded.
- Replay-specific errors: read test-replay.md.
FAQ
What does the cypress-cloud-cli skill do?
Runs the cy-cloud CLI to inspect Cypress Cloud organizations, projects, runs, specs, tests, failure screenshots, and Test Replay data. Use when the user mentions Cypress Cloud, cy-cloud, cypress-cloud-cli, a Cloud run or test URL, failing or flaky Cypress tests, Test Replay, run triage, Cloud artifacts, or asks why a recorded test failed.
How do I install cypress-cloud-cli?
Run npx skills add https://github.com/cypress-io/ai-toolkit --skill cypress-cloud-cli in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/cypress-cloud-cli/ (personal) or .claude/skills/cypress-cloud-cli/ (project).
Which AI agents can use cypress-cloud-cli?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is cypress-cloud-cli safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains cypress-cloud-cli?
It is published by cypress-io in cypress-io/ai-toolkit. It has 1,818 recorded installs.
More from cypress-io/ai-toolkit
cypress-author
cypress-io/ai-toolkit
Creates, updates, and fixes Cypress tests (E2E/end-to-end and component tests). Use when the user asks to create tests, add tests, write tests, update tests, test this file/component, new spec, or fix a failing or flaky test. Apply even when the user does not say 'Cypress' (e.g. 'create tests for this file'). Prefer cypress-explain when the user only wants to explain or review tests without changing code.
cypress-docs
cypress-io/ai-toolkit
Search and extract Cypress information from official documentation (docs.cypress.io, cypress.io); prefer LLM markdown under /llm/ and refuse unverified API or behavior claims.
cypress-explain
cypress-io/ai-toolkit
Explains Cypress tests (E2E and component tests), and answers questions about Cypress use and behavior. Use when the user asks to explain how a test works, explain how Cypress works, review or critique a test without writing code. Apply even when the user does not say 'Cypress' (e.g. 'explain this test'). Prefer the cypress-author skill when the user wants to create, fix, or update tests.
cypress-tap
cypress-io/ai-toolkit
Drives a running Cypress open-mode session through cypress tap to run and rerun specs, wait for fresh results, inspect reporter and command logs, and query or rewind the app under test through DOM, accessibility, styles, and snapshots. Use when authoring or debugging Cypress e2e or component specs, discovering selectors, diagnosing failures, or verifying test behavior without GUI interaction. Not for one-shot headless runs. Requires Cypress 15.21+, a Chromium-family browser, and a running cypress open session.
Popular testing & qa skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
grilling
mattpocock/skills
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
migrate-to-shoehorn
mattpocock/skills
Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
run-train
lllllllama/rigorpilot-skills
Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.
test-driven-development
obra/superpowers
Use when implementing any feature or bugfix, before writing implementation code
finishing-a-development-branch
obra/superpowers
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work