QA Sphere CLI
The QA Sphere CLI (qasphere, published as the qas-cli npm package) is the official command-line interface for QA Sphere. It exposes the full public API and supports four primary workflows:
- Ad-hoc terminal use — run
qasphere api <resource> <action>commands to inspect or change QA Sphere state. Every command prints JSON to stdout for easy piping into tools likejq. See Public API. - Scripts and CI/CD automation — orchestrate projects, folders, test cases, milestones, runs, and results from shell scripts and pipelines. See CI/CD Integrations.
- Test result uploads — push JUnit XML, Playwright JSON, and Allure result directories at the end of an automated run. See Result Upload.
- AI coding agents — a bundled skill lets Claude Code, Cursor, and similar agents drive QA Sphere through the CLI in natural language. See Agent Skill.
qas-cli is open source: github.com/Hypersequent/qas-cli. Track development, report issues, and contribute on GitHub.
Installation
Requirements
Node.js 18.0.0 or higher. No other runtime is needed — the CLI works alongside Python, Go, Java, or any other test stack.
If you don't already have Node.js, install it via your system package manager:
- macOS:
brew install node - Ubuntu/Debian:
sudo apt install nodejs npm - Windows / other: download from nodejs.org
Via npm (global)
npm install -g qas-cli
Verify:
qasphere --version
Update later with:
npm update -g qas-cli
Via npx
npx qas-cli <command>
On first use you'll be prompted to download the package. npx qas-cli works in every context the qasphere command does.
Verify:
npx qas-cli --version
npx caches packages. To force the latest version, run npx clear-npx-cache
(or pin a specific version, e.g. npx [email protected]).
Shell completion
The CLI ships with tab completion for commands and options. Append the completion script to your shell profile:
Zsh:
qasphere completion >> ~/.zshrc
Bash:
qasphere completion >> ~/.bashrc
Restart your shell (or source the profile) and pressing Tab will autocomplete commands and flags.
Where to next
- Auth — log in via OAuth or configure an API key.
- Public API — call the full QA Sphere REST API from the terminal.
- Result Upload — upload JUnit XML, Playwright JSON, or Allure results into a run.
- Agent Skill — register the CLI with Claude Code, Cursor, and other coding agents.
- CI/CD Integrations — wire the CLI into GitHub Actions, GitLab CI/CD, or Bitbucket Pipelines.