Routebase.Cli
3.0.0
dotnet tool install --global Routebase.Cli --version 3.0.0
dotnet new tool-manifest
dotnet tool install --local Routebase.Cli --version 3.0.0
#tool dotnet:?package=Routebase.Cli&version=3.0.0
nuke :add-package Routebase.Cli --version 3.0.0
Routebase CLI
Run your Routebase API tests, security scans, environment promotions and documentation sync from a terminal or a CI pipeline.
This is a client for Routebase — it needs an account and an API key. It is not a standalone testing tool.
Install
dotnet tool install --global Routebase.Cli
The command is routebase.
Configure
Create an API key under Settings → API Keys in the app, then:
routebase config set-api-key "$ROUTEBASE_API_KEY"
routebase config set-region us # only if your organization is hosted in the US
routebase config show
Region matters. One host serves both the EU and the US region, and requests
without a region signal are served from the EU. If your organization is hosted in the
US, either run config set-region us or set ROUTEBASE_REGION=us — otherwise your key
is looked up in the wrong region and the run fails at authentication. EU organizations
need nothing. In CI the environment variable is usually the better fit; it takes
precedence over the stored value.
Commands
| Command | What it does |
|---|---|
routebase run <project-id> <suite-id> |
Runs a test suite and exits non-zero when it fails |
routebase scan <project-id> <profile-id> |
Runs a security scan, gates on --fail-on <severity>, exports SARIF |
routebase promote <spec> <version> --env <name> |
Pins a spec version to an environment after a deploy |
routebase spec push <spec> --file <path> |
Pushes an OpenAPI file generated from code into the spec's draft. A push with breaking changes is refused and links the decision in Routebase; --accept-breaking takes them in one run, --dry-run previews with the same exit code, --overwrite lets the file win over edits made in Routebase. --version-id names the draft, and --line 4 names the draft of a major version line, creating it from the line's latest release when there is none. On GitHub Actions it writes a summary to the job page |
routebase docs pull --project <id> / docs push --project <id> |
Docs-as-code: sync a documentation version to and from Markdown files |
routebase list suites <project-id> |
Lists the test suites in a project |
routebase config |
Stores API key, base URL, region and default project |
Run routebase <command> --help for the full option list.
Exit codes
| Code | Meaning |
|---|---|
0 |
Success |
1 |
The run failed — tests failed, or a finding tripped --fail-on |
2 |
Configuration or input error (missing API key, bad flag, a file that is not valid OpenAPI) |
3 |
Network error, or the run did not complete |
4 |
Authentication error — the key is wrong, or lacks the permission or project scope |
5 |
Project, suite, profile, spec or version not found |
6 |
Refused by the current state in Routebase — a spec push has breaking changes that need a decision (also with --dry-run), met values edited in Routebase since the last push, or found no single draft, or a page changed remotely since docs pull |
7 |
docs push --preview wrote the pages, but the portal preview failed or was not ready within 10 minutes |
Every command maps an HTTP 403 — a key without the permission the command needs — to 4, not to
3. Before 2.0.0 run and list returned 3 there, which pointed a pipeline at the network
instead of at its key.
Since 3.0.0 spec push asks Routebase to refuse a push with breaking changes against the draft, so
such a push exits 6 and writes nothing unless the run passes --accept-breaking. A dry run exits
6 for the same file, which makes the pull request job the check. With 2.x the push went through
unless the spec's own setting refused it.
The CLI never follows an HTTP redirect, because the X-API-Key header would be sent to the
redirect target too. A 3xx answer stops the command with 3 and names the target, so a wrong
base URL fails visibly instead of handing the key to another host.
Documentation
Full guides: https://docs.routebase.dev
Licence
Proprietary. Use requires a Routebase subscription or trial — see the bundled
LICENSE.md and https://routebase.dev/terms.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.