Hoppscotch CLI
$ hopp Official Low RiskHoppscotch CLI (@hoppscotch/cli, binary hopp) runs exported Hoppscotch JSON collections or remote workspace collections (hopp test <collection> -e <env>) with assertion checks, iteration datasets (--iteration-data), --token auth, and --reporter-junit CI XML output.
npm install -g @hoppscotch/cli hopp executes Hoppscotch collection assertions, pre-request/test scripts, and JUnit reporting locally inside CI runners without browser or MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Headless hopp test execution with --reporter-junit, --iteration-count, and --iteration-data, though it lacks a --json reporter flag.
- Non-interactive
hopp testwith JUnit XML reporting (--reporter-junit) - No native
--jsonsummary flag
Masks OS-injected secret variables in terminal logs and supports local JSON files, though collection test scripts run arbitrary JS without --dry-run.
- Masks OS environment secrets in CLI output
- No
--dry-runpreview mode
Cross-platform npm package (@hoppscotch/cli / npx @hoppscotch/cli) requiring Node.js.
- Published on npm as
@hoppscotch/cli
Bridges Hoppscotch web/desktop collections straight into CI pipelines with data-driven iterations.
- Supports local JSON exports and remote
--server/--tokenexecution
Official Hoppscotch repository (hoppscotch/hoppscotch) under MIT license.
- First-party Hoppscotch CLI under MIT
Clear official CLI documentation at docs.hoppscotch.io.
- Official docs at docs.hoppscotch.io/documentation/clients/cli/overview
Security, Auth & Guardrails
Reads environment JSON files (-e env.json), OS environment variables (masked in logs), or --token for remote Hoppscotch instances.
MIT open-source CLI; free for local and CI execution.
# Hoppscotch CLI (hopp) Agent Rules - Always pass `-e <env.json>` and `--reporter-junit <path>` in CI pipelines. - Inject secrets via OS environment variables rather than committing them in `env.json`. - Review collection endpoints before running `hopp test` against production environments.
Agent-Ready Command Recipes
Safe Read-Only Queries
hopp test ./collection.json -e ./env.json --reporter-junit ./junit.xml
Executes collection tests against ./env.json and writes a CI-compatible JUnit XML report.
hopp test <collection-id> -e <env-id> --token "$HOPP_TOKEN" --server https://hopp.example.com
Fetches a remote collection and environment by ID and executes assertions non-interactively.
Strengths for Agents
- + Clean CI integration via
hopp test,--reporter-junit, and automatic secret masking. - + Works seamlessly with both exported JSON files and self-hosted
--serverworkspaces.
Caveats & Pitfalls
- ! Focused strictly on
hopp testcollection runs rather than ad-hoc single requests. - ! No
--jsonoutput flag (only human stdout and--reporter-junit).