Overview
rqb request lets you fire off any HTTP request from the terminal no spec file needed. It feels like curl but with automatic variable resolution and optional spec saving.
Usage
Examples
Default output
Compact by default (agent-friendly):--verbose for the full diff view.
Options
| Flag | Description |
|---|---|
-H, --header <Name: Value> | Add a request header. Repeatable. |
-d, --data <body> | Request body string, or @file to read from a file. |
--var <key=value> | Variable override. Repeatable. |
--env <name> | Environment for variable resolution (default: dev). |
--dry-run | Print the resolved request without sending. |
--timeout <ms> | Timeout override in milliseconds. |
--save [path] | Save result as a spec file. Omit path to auto-save to collection. |
--verbose | Full diff output. |
Workspace behaviour
- Inside a git repo: the collection is at
<repo-root>/api-docs/. Auto-saved requests go to<repo-root>/api-docs/apis/scratch/. - Outside a git repo: the collection is at
~/.rqb/workspace/default/api-docs/. Unsaved requests go to~/.rqb/workspace/scratch/api-docs/.