Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

Generated from the command tree (RUSTYBIN_UPDATE_CLI_DOCS=1 cargo test cli_docs); the CLI guide says how to sign in, use profiles and script it, and the mocks CLI covers the offline rustybin mock commands.

rustybin <noun> <verb> [args] [flags]. Every command takes the global flags; --json prints the instance's answer as it is, --yes skips a confirmation. Exit codes: 0 done, 1 refused or failed, 2 usage, 3 the network, the credentials, or a permission the credential lacks (permission_required: <permission>). The Needs column names the permission each command needs (the routes it calls declare it).

FlagMeaning
--urlThe instance URL (else RUSTYBIN_URL, the profile, http://localhost:80)
--profileThe profile to use (else RUSTYBIN_PROFILE, the default profile)
--tokenA control token or the admin token (else RUSTYBIN_TOKEN, the profile)
--sessionThe X-Rustybin-Session the calls carry
--mock-tokenA self-service manage token (else RUSTYBIN_MOCK_TOKEN)
--jsonPrint the instance's JSON answer as it is
--yesSkip the confirmation of a destructive verb
--quietNo progress or confirmation lines
--helpThis help

login

Sign in to an instance and keep its token in a profile

CommandWhat it doesCallsNeeds
rustybin login [--url U] [--user U] [--password-stdin] [--sso | --agent [--scope S]] [--no-browser] [--wait S] [--profile P]Sign in with the console user name and password (prompted, or the first line of stdin) and keep the token in a profile; --sso signs in with the identity provider in the browser instead (a loopback address on this machine takes the answer); --token keeps a token you already have. --agent signs an AI agent in instead: the browser opens the console's consent screen, you approve, and the agent's tokens are kept in the profile for rustybin mcp-stdio. An agent sign-in works with rustybin mcp-stdio only (the instance accepts its tokens on /_rustybin/mcp and nowhere else): the other commands need a sign-in of your own. Flags: --user value, --password-stdin, --sso, --no-browser, --wait value, --agent, --scope value.POST /_rustybin/login, GET /_rustybin/session, GET /_rustybin/sso/status, GET /_rustybin/sso/start, POST /_rustybin/sso/token, POST /_rustybin/oauth/register, GET /_rustybin/oauth/authorize, POST /_rustybin/oauth/tokenopen, signed in
rustybin login --url https://mocks.example.com --user rustybin

logout

Revoke the profile's token and forget it

CommandWhat it doesCallsNeeds
rustybin logoutRevoke the profile's token on the instance and forget it, with the profile's agent sign-in (rustybin agents revoke ends an agent on the instance).POST /_rustybin/logoutsigned in
rustybin logout

whoami

Who the current credential is

CommandWhat it doesCallsNeeds
rustybin whoamiThe credential the calls carry: user, scopes, expiry.GET /_rustybin/sessionsigned in
rustybin whoami

status

The instance's status

CommandWhat it doesCallsNeeds
rustybin statusName, version, modes, health, the features that are on.GET /_rustybin/statusinstance.read
rustybin status

doctor

What is wrong with the instance, and the fix

CommandWhat it doesCallsNeeds
rustybin doctorWhat is wrong with the instance and how to fix it; exits 1 when a check fails.GET /_rustybin/diagnosticssettings.read
rustybin doctor

instance

Version, readiness, the running configuration, the catalogue, metrics, usage

CommandWhat it doesCallsNeeds
rustybin instance versionVersion and build.GET /_rustybin/versioninstance.read
rustybin instance readyReadiness (never authenticated).GET /_rustybin/readyopen
rustybin instance configThe running configuration (no secrets).GET /_rustybin/configinstance.read
rustybin instance catalog [--category C]The route catalogue. Flags: --category value.GET /_rustybin/cataloginstance.read
rustybin instance metricsPrometheus metrics, as text.GET /_rustybin/metricsinstance.read
rustybin instance usagePlan limits and this client's usage.GET /_rustybin/usageinstance.read
rustybin instance version
rustybin instance ready
rustybin instance config
rustybin instance catalog --category "Mock APIs (OpenAPI)"
rustybin instance metrics
rustybin instance usage

profiles

The profiles this machine keeps

CommandWhat it doesCallsNeeds
rustybin profiles listThe profiles and the default.(none)
rustybin profiles use <name>Make a profile the default.(none)
rustybin profiles remove <name>Forget a profile.(none)
rustybin profiles list
rustybin profiles use mocks.example.com
rustybin profiles remove old-instance

settings

Instance settings: get, set, secrets, unset, the schema

CommandWhat it doesCallsNeeds
rustybin settings get [key]Every setting with its value and source, or one.GET /_rustybin/settingssettings.read
rustybin settings set <key> <value>Save a setting (JSON values are parsed, anything else is a string).PATCH /_rustybin/settingssettings.write
rustybin settings set-secret <key> [--stdin]Save a secret (prompted without echo, or the first line of stdin). Flags: --stdin.PATCH /_rustybin/settingssettings.write
rustybin settings unset <key>Forget the stored value (back to the environment or the default).DELETE /_rustybin/settings/{key}settings.write
rustybin settings schemaEvery registered setting: key, kind, default, variable.GET /_rustybin/settingssettings.read
rustybin settings requests [--state S]The secrets AI agents asked to have set (request_secret): the setting, the agent and the user it acts for, the agent's reason (its claim), the state, the note left on a decline. Everyone's with secrets.write, else your own agents'. An agent never sets a secret: you fulfil or decline. Flags: --state value.GET /_rustybin/secret-requestssigned in
rustybin settings fulfil <id> [--stdin]Set the secret an agent asked for: the value is prompted without echo, or read from the first line of stdin, never an argument. It goes to the settings store and never to the agent; needs what settings set-secret needs for that setting. Flags: --stdin.GET /_rustybin/secret-requests/{id}, POST /_rustybin/secret-requests/{id}/fulfilsigned in, secrets.write
rustybin settings decline <id> [--note TEXT]Decline a secret request: nothing is set, and the agent reads declined, with your note when you leave one. Any request with secrets.write, else one of your own agents'. Flags: --note value.POST /_rustybin/secret-requests/{id}/declinesigned in
rustybin settings get console.title
rustybin settings set console.title "Payments mocks"
rustybin settings set-secret assist.openai_key --stdin < key.txt
rustybin settings unset console.title
rustybin settings schema
rustybin settings requests --state pending
rustybin settings fulfil sr_0000000000000000 --stdin < key.txt
rustybin settings decline sr_0000000000000000 --note "use the deploy key that is already set"

sessions

The console's sign-in sessions

CommandWhat it doesCallsNeeds
rustybin sessions listThe sign-in sessions since the last restart.GET /_rustybin/sessionsusers.read
rustybin sessions end <id>End one session.DELETE /_rustybin/sessions/{id}users.manage
rustybin sessions end-allSign out everywhere (every token issued so far).DELETE /_rustybin/sessionsusers.manage
rustybin sessions list
rustybin sessions end 3f2a
rustybin sessions end-all --yes

password

Change the first admin's user name and password (0.3; rustybin passwd changes yours)

CommandWhat it doesCallsNeeds
rustybin password change [--user U] [--stdin]Change your password (the first admin's also takes a new user name): the current and the new one prompted, or two lines of stdin. Flags: --user value, --stdin.PUT /_rustybin/passwordsigned in
rustybin password hash [--stdin]Hash a password for RUSTYBIN_CONSOLE_PASSWORD_HASH, offline: prompted, or the first line of stdin. Prints the argon2id hash and nothing else. Flags: --stdin.(none)
rustybin password change --stdin < passwords.txt
rustybin password hash --stdin

users

Users: invite, change roles, disable, delete (the password sign-in)

CommandWhat it doesCallsNeeds
rustybin users listThe users: roles, status (active, invited, disabled), last sign-in.GET /_rustybin/usersusers.read
rustybin users invite <name> --role R [--display-name D] [--email E] [--reset] [--sso]Invite a user: the answer is a link to send them (shown once), where they set their own password. --reset sends a user who exists a new link (a password reset); --sso adds a single sign-on user instead (no link). Flags: --role value, --display-name value, --email value, --reset, --sso, --project value.POST /_rustybin/users, POST /_rustybin/users/{id}/inviteusers.manage
rustybin users show <user>One user (an id or a sign-in name): roles, permissions, status, the open invitation.GET /_rustybin/users/{id}users.read
rustybin users update <user> [--role R] [--pin-role R] [--display-name D] [--email E]Change a user's roles (--role replaces them; repeatable), a single sign-on user's pinned roles (--pin-role), display name or email (--email "" clears it). Flags: --role value, --display-name value, --email value, --pin-role value.PATCH /_rustybin/users/{id}users.manage
rustybin users disable <user>Disable a user: their sessions end and their sign-in is refused.PATCH /_rustybin/users/{id}users.manage
rustybin users enable <user>Enable a disabled user again (an invited one joins through the invitation).PATCH /_rustybin/users/{id}users.manage
rustybin users sessions <user> [--end]A user's sign-in sessions; --end signs them out everywhere. Flags: --end.GET /_rustybin/users/{id}/sessions, DELETE /_rustybin/users/{id}/sessionsusers.read, users.manage
rustybin users delete <user>Delete a user (never the last enabled admin, never the first admin).DELETE /_rustybin/users/{id}users.manage
rustybin users list
rustybin users invite alice --role editor --display-name "Alice Doe"
rustybin users show alice
rustybin users update alice --role tester
rustybin users disable alice --yes
rustybin users enable alice
rustybin users sessions alice
rustybin users delete alice --yes

roles

Roles: the built-in ones and custom roles with their permissions

CommandWhat it doesCallsNeeds
rustybin roles listThe roles with their permissions, whether they are privileged and how many users hold them.GET /_rustybin/rolesusers.read
rustybin roles show <name>One role: its permissions and who holds it.GET /_rustybin/roles/{name}users.read
rustybin roles save <name> --permission P [--description D]Create or change a custom role (--permission repeatable, or comma separated). Flags: --permission value, --description value.PUT /_rustybin/roles/{name}, POST /_rustybin/rolesusers.manage
rustybin roles delete <name>Delete a custom role nobody holds.DELETE /_rustybin/roles/{name}users.manage
rustybin roles list
rustybin roles show editor
rustybin roles save catalog-reader --permission mocks.read,traffic.read --description "Reads mocks and traffic"
rustybin roles delete catalog-reader --yes

projects

Projects: roles on part of the instance (mocks, saved tests, checkpoints)

CommandWhat it doesCallsNeeds
rustybin projects listThe projects you may see, your roles in each and what each holds.GET /_rustybin/projectssigned in
rustybin projects show <name>One project: its members (with users.read), your roles, its mocks, saved tests and checkpoints.GET /_rustybin/projects/{name}signed in
rustybin projects save <name> [--description D] [--member USER=role+role]...Create or change a project; --member (repeatable) replaces the members. Flags: --description value, --member value, --no-members.PUT /_rustybin/projects/{name}users.manage
rustybin projects delete <name> [--move-to P]Delete a project; one that holds resources needs --move-to (another project, or instance). Flags: --move-to value.DELETE /_rustybin/projects/{name}users.manage
rustybin projects list
rustybin projects show payments
rustybin projects save payments --description "The payments team"
rustybin projects delete payments --move-to instance --yes

me

Your own account: who you are, display name, email, sessions

CommandWhat it doesCallsNeeds
rustybin meYour own account: user, display name, email, roles, permissions.GET /_rustybin/mesigned in
rustybin me update [--display-name D] [--email E]Change your display name or email (--email "" clears it). Flags: --display-name value, --email value.PATCH /_rustybin/mesigned in
rustybin me sessions [--end-all]Your sign-in sessions; --end-all signs you out everywhere (this profile too). Flags: --end-all.GET /_rustybin/me/sessions, DELETE /_rustybin/me/sessionssigned in
rustybin me end-session <id>End one of your sign-in sessions.DELETE /_rustybin/me/sessions/{id}signed in
rustybin me
rustybin me update --display-name "Ops on call"
rustybin me sessions
rustybin me end-session 3f2a

passwd

Change your own password

CommandWhat it doesCallsNeeds
rustybin passwd [--stdin]Change your own password: the current and the new one prompted, or two lines of stdin. Your other sessions end; the profile keeps a fresh token. Flags: --stdin.PUT /_rustybin/me/passwordsigned in
rustybin passwd --stdin < passwords.txt

sso

Single sign-on with OpenID Connect: its status, and a test against the provider

CommandWhat it doesCallsNeeds
rustybin sso statusSingle sign-on as the sign-in screen sees it: on, ready, the button's name, whether the password sign-in works.GET /_rustybin/sso/statusopen
rustybin sso testFetch the identity provider's discovery document and keys now, and check the role map; exits 1 when the provider cannot be read.POST /_rustybin/sso/testsettings.write
rustybin sso status
rustybin sso test

mocks

OpenAPI mocks on the instance (rustybin mock ... works offline)

CommandWhat it doesCallsNeeds
rustybin mocks list [--all] [--project P]The mocks with their state and traffic. Flags: --all, --project value.GET /_rustybin/mocksmocks.read
rustybin mocks get <name>One mock: settings, operations, the deploy report.GET /_rustybin/mocks/{name}mocks.read
rustybin mocks create <name> (--spec FILE | --spec-url URL) [--project P]Create a mock from an OpenAPI file (YAML or JSON) or an AsyncAPI one (an event mock with channels), or from a URL the instance fetches itself. Flags: --spec value, --spec-url value, --mode value, --disabled, --no-deploy, --strip-server-prefix, --project value.POST /_rustybin/mocksmocks.write
rustybin mocks move <name> --project PMove a mock to another project (instance: the instance's); needs mocks.write in both. Flags: --project value.PATCH /_rustybin/mocks/{name}mocks.write
rustybin mocks import --spec FILEPreview a spec: title, operations, the checks, the suggested name. Flags: --spec value.POST /_rustybin/mocks/importmocks.read
rustybin mocks update <name> [--spec FILE] [--mode M] [--settings JSON]Change a mock's spec or settings (the draft, deployed unless --no-deploy). Flags: --spec value, --mode value, --settings value, --no-deploy, --force, --expect-revision value.PATCH /_rustybin/mocks/{name}mocks.write
rustybin mocks deploy <name> [--force] [--expect-revision N]Deploy the draft. Flags: --force, --expect-revision value.POST /_rustybin/mocks/{name}/deploymocks.write
rustybin mocks rollback <name> [--revision N]Go back to the previous (or a given) revision. Flags: --revision value.POST /_rustybin/mocks/{name}/rollbackmocks.write
rustybin mocks enable <name>Switch a mock on.POST /_rustybin/mocks/{name}/enablemocks.write
rustybin mocks disable <name>Switch a mock off.POST /_rustybin/mocks/{name}/disablemocks.write
rustybin mocks delete <name>Delete a mock.DELETE /_rustybin/mocks/{name}mocks.delete
rustybin mocks duplicate <name> [--name NEW]Copy a mock. Flags: --name value.POST /_rustybin/mocks/{name}/duplicatemocks.write
rustybin mocks check <name>The deploy report: a valid request and response per operation.GET /_rustybin/mocks/{name}/reportmocks.read
rustybin mocks coverage <name>Which operations lack an example.GET /_rustybin/mocks/{name}/coveragemocks.read
rustybin mocks drift <name> [--upstream URL] [--header 'K: V']... [--operation ID]... [--junit]Check the mock against the real API it imitates (its drift.upstream, or --upstream): one request per operation, where the answers disagree with the spec; exits 1 on drift. A header value may hold {{VAR}}, filled from this shell's RUSTYBIN_TEST_<VAR>. Flags: --upstream value, --header value, --operation value, --junit.POST /_rustybin/mocks/{name}/driftmocks.write
rustybin mocks drift-runs <name>The mock's kept drift checks, newest first.GET /_rustybin/mocks/{name}/driftmocks.read
rustybin mocks channels <name>An AsyncAPI mock's channels: what each sends and receives, its pattern, its URL and who is connected.GET /_rustybin/mocks/{name}/channelsmocks.read
rustybin mocks events <name> <channel> [--limit N] [--follow]The messages published and received on a channel of an AsyncAPI mock, newest first; --follow keeps printing new ones (--max N, --timeout SECONDS). Flags: --limit value, --follow, --max value, --timeout value.GET /_rustybin/mocks/{name}/channels/{channel}/messagestraffic.read
rustybin mocks publish <name> <channel> [--data JSON] [--count N]Make an AsyncAPI mock publish now, to every subscriber of the channel: its next message, --count of them, or --data as it is. Flags: --data value, --count value.POST /_rustybin/mocks/{name}/channels/{channel}/publishmocks.data
rustybin mocks subscribers <name>The webhook subscribers of an AsyncAPI mock.GET /_rustybin/mocks/{name}/subscribersmocks.read
rustybin mocks subscribe <name> <channel> --webhook URL [--ttl SECONDS]Post every message of a channel to a URL; its host must be in RUSTYBIN_EGRESS_ALLOW (purpose events). Flags: --webhook value, --ttl value.POST /_rustybin/mocks/{name}/subscribersmocks.write
rustybin mocks unsubscribe <name> <id>Remove a webhook subscriber.DELETE /_rustybin/mocks/{name}/subscribers/{id}mocks.write
rustybin mocks spec <name>The mock's OpenAPI document as stored.GET /_rustybin/mocks/{name}/specmocks.read
rustybin mocks revision <name> <revision>A kept revision: what changed since in the draft, its settings and spec (the whole answer with --json). Flags: --spec.GET /_rustybin/mocks/{name}/revisions/{revision}mocks.read
rustybin mocks export [name]One mock, or all, as a rustybin.yaml with only the mocks section.GET /_rustybin/mocks/{name}/export, GET /_rustybin/mocks/exportmocks.read
rustybin mocks apply <file> [--prune]Apply a rustybin.yaml (spec files are read locally and inlined); --prune deletes API mocks it does not name. Flags: --prune.POST /_rustybin/mocks/applyconfig.apply
rustybin mocks reloadReload the file-defined mocks (RUSTYBIN_CONFIG_FILE, RUSTYBIN_MOCKS_DIR).POST /_rustybin/mocks/reloadconfig.apply
rustybin mocks schemaThe JSON Schema of rustybin.yaml.GET /_rustybin/mocks/config.schema.jsonmocks.read
rustybin mocks sample <name> <operationId>A valid response for an operation. Flags: --status value, --seed value, --mode value, --example value.GET /_rustybin/mocks/{name}/operations/{op}/samplemocks.read
rustybin mocks validate <name> <operationId> --body FILEValidate a request or response body against the spec. Flags: --body value, --kind value, --status value.POST /_rustybin/mocks/{name}/operations/{op}/validatemocks.read
rustybin mocks operation <name> <operationId>One operation's settings and statistics.GET /_rustybin/mocks/{name}/operations/{op}mocks.read
rustybin mocks set-operation <name> <operationId> --settings JSONSet an operation's settings (respond, rules, mode, delay_ms, public). Flags: --settings value, --expect-revision value.PUT /_rustybin/mocks/{name}/operations/{op}mocks.write
rustybin mocks test-rules <name> <operationId> [--rules FILE] [--request N]Try an operation's rules (or given ones) on a captured request. Flags: --rules value, --request value.POST /_rustybin/mocks/{name}/operations/{op}/rules/testmocks.read
rustybin mocks traffic <name> [--limit N]The mock's captured requests. Flags: --limit value.GET /_rustybin/mocks/{name}/requeststraffic.read
rustybin mocks traffic-get <name> <n>One captured request of the mock.GET /_rustybin/mocks/{name}/requests/{n}traffic.read
rustybin mocks traffic-tail <name>Follow the mock's requests as they arrive. Flags: --max value, --timeout value.GET /_rustybin/mocks/{name}/requests/streamtraffic.read
rustybin mocks traffic-clear <name>Forget the mock's captured requests.DELETE /_rustybin/mocks/{name}/requestsmocks.data
rustybin mocks data <name>The items a stateful mock stored.GET /_rustybin/mocks/{name}/statemocks.read
rustybin mocks data-clear <name>Forget the items a stateful mock stored.DELETE /_rustybin/mocks/{name}/statemocks.data
rustybin mocks collection <name> <format>The mock as a postman, hurl, curl, http, k6, bruno or insomnia collection. Flags: --base-url value.GET /_rustybin/mocks/{name}/collections/{format}mocks.read
rustybin mocks describe "<description>"An OpenAPI spec from a description (AI), printed as JSON. Flags: --openapi-version value, --model value.POST /_rustybin/mocks/ai/specassist.jobs
rustybin mocks examples <name> [--apply]Example payloads for the operations that lack one (AI). Flags: --operations value, --per-response value, --persona value, --source value, --apply.POST /_rustybin/mocks/{name}/ai/examplesassist.jobs
rustybin mocks edit <name> "<instruction>" [--apply]Edit a spec with an instruction (AI): the diff, applied with --apply. Flags: --apply, --model value.POST /_rustybin/mocks/{name}/ai/editassist.jobs
rustybin mocks list
rustybin mocks get petstore
rustybin mocks create orders --spec orders.yaml --mode generated
rustybin mocks move orders --project instance
rustybin mocks import --spec orders.yaml
rustybin mocks update orders --mode stateful
rustybin mocks deploy orders
rustybin mocks rollback orders
rustybin mocks enable orders
rustybin mocks disable orders
rustybin mocks delete orders --yes
rustybin mocks duplicate orders --name orders-v2
rustybin mocks check orders
rustybin mocks coverage orders
rustybin mocks drift orders --upstream https://api.example.com/v1
rustybin mocks drift-runs orders
rustybin mocks channels orders
rustybin mocks events orders orders-created --limit 5
rustybin mocks publish orders orders-created
rustybin mocks subscribers orders
rustybin mocks subscribe orders orders-created --webhook https://hooks.example.com/orders
rustybin mocks unsubscribe orders 0a1b2c3d4e5f6a7b
rustybin mocks spec orders > orders.yaml
rustybin mocks revision orders 12
rustybin mocks export orders
rustybin mocks apply rustybin.yaml --prune --yes
rustybin mocks reload
rustybin mocks schema
rustybin mocks sample orders listOrders --status 200
rustybin mocks validate orders createOrder --body order.json --kind request
rustybin mocks operation orders listOrders
rustybin mocks set-operation orders listOrders --settings '{"delay_ms": 200}'
rustybin mocks test-rules orders getOrder
rustybin mocks traffic orders --limit 20
rustybin mocks traffic-get orders 7
rustybin mocks traffic-tail orders --max 10
rustybin mocks traffic-clear orders --yes
rustybin mocks data orders
rustybin mocks data-clear orders --yes
rustybin mocks collection orders hurl > orders.hurl
rustybin mocks describe "a parcel tracking API with shipments and events"
rustybin mocks examples orders --apply
rustybin mocks edit orders "add a DELETE /orders/{id} operation" --apply

visits

Self-service visits, as the operator

CommandWhat it doesCallsNeeds
rustybin visits listEvery self-service visit.GET /_rustybin/mocks/visitsvisits.operate
rustybin visits end <id>End a visit (its mocks go).DELETE /_rustybin/mocks/visits/{id}visits.operate
rustybin visits end-allEnd every visit.DELETE /_rustybin/mocks/visitsvisits.operate
rustybin visits pauseStop accepting new visits.POST /_rustybin/mocks/visits/pausevisits.operate
rustybin visits resumeAccept new visits again.POST /_rustybin/mocks/visits/resumevisits.operate
rustybin visits list
rustybin visits end 9c1e --yes
rustybin visits end-all --yes
rustybin visits pause
rustybin visits resume

visit

Your own self-service visit, as a visitor

CommandWhat it doesCallsNeeds
rustybin visit getYour visit (needs --mock-token or RUSTYBIN_MOCK_TOKEN).GET /_rustybin/mocks/visitmocks.read
rustybin visit start [--email E]Start a visit; the manage token is shown once. Flags: --email value.POST /_rustybin/mocks/visitsigned in
rustybin visit extendExtend your visit.POST /_rustybin/mocks/visit/extendsigned in
rustybin visit rotate-tokenA new manage token for your visit.POST /_rustybin/mocks/visit/tokensigned in
rustybin visit endEnd your visit.DELETE /_rustybin/mocks/visitsigned in
rustybin visit get --mock-token rbm_...
rustybin visit start
rustybin visit extend --mock-token rbm_...
rustybin visit rotate-token --mock-token rbm_...
rustybin visit end --mock-token rbm_... --yes

requests

The request inspector

CommandWhat it doesCallsNeeds
rustybin requests list [--limit N] [--path-prefix P]The captured requests. Flags: --limit value, --path-prefix value.GET /_rustybin/requeststraffic.read
rustybin requests get <id>One captured request.GET /_rustybin/requests/{id}traffic.read
rustybin requests tailFollow the requests as they arrive. Flags: --max value, --timeout value.GET /_rustybin/requests/streamtraffic.read
rustybin requests clearForget the captured requests.DELETE /_rustybin/requeststraffic.read
rustybin requests list --limit 20
rustybin requests get 42
rustybin requests tail --max 5
rustybin requests clear --yes

bins

Request bins

CommandWhat it doesCallsNeeds
rustybin bins listYour request bins.GET /bin(none)
rustybin bins create [--status N] [--body B] [--delay-ms N]A new bin, with the answer it gives. Flags: --status value, --body value, --delay-ms value.POST /bin(none)
rustybin bins delete <id>Delete a bin.DELETE /bin/{id}(none)
rustybin bins requests <id> [--limit N]What a bin captured. Flags: --limit value.GET /bin/{id}/requests(none)
rustybin bins get <id> <n>One captured request of a bin.GET /bin/{id}/requests/{n}(none)
rustybin bins tail <id>Follow a bin's requests. Flags: --max value, --timeout value.GET /bin/{id}/requests/stream(none)
rustybin bins list
rustybin bins create --status 202
rustybin bins delete 0123456789abcdef01234567 --yes
rustybin bins requests 0123456789abcdef01234567
rustybin bins get 0123456789abcdef01234567 1
rustybin bins tail 0123456789abcdef01234567 --max 3

checkpoint

Checkpoints: the instance's API mocks and health, saved and restored

CommandWhat it doesCallsNeeds
rustybin checkpoint list [--from-git] [--project P]The checkpoints and the mocks each holds; --from-git lists the configuration repository's (after git pull). Flags: --from-git, --project value.GET /_rustybin/checkpointsmocks.read
rustybin checkpoint show <name>One checkpoint.GET /_rustybin/checkpoints/{name}mocks.read
rustybin checkpoint save <name> [--replace] [--project P]Save the instance's API mocks (with their data) and the health toggle; --project keeps one project's mocks only. Flags: --replace, --project value.POST /_rustybin/checkpointscheckpoints.write
rustybin checkpoint restore <name> [--dry-run] [--from-git]Bring the API mocks, their data and health back (other API mocks are deleted, flaky counters reset); --dry-run says what would change, --from-git restores the configuration repository's checkpoint. Flags: --dry-run, --from-git.POST /_rustybin/checkpoints/{name}/restorecheckpoints.restore
rustybin checkpoint delete <name>Delete a checkpoint (the instance is not changed).DELETE /_rustybin/checkpoints/{name}checkpoints.write
rustybin checkpoint list
rustybin checkpoint show demo-start
rustybin checkpoint save demo-start
rustybin checkpoint restore demo-start --yes
rustybin checkpoint delete demo-start --yes

tests

Saved tests: captured requests with assertions, run here, through a gateway or in CI

CommandWhat it doesCallsNeeds
rustybin tests list [--project P]The saved tests and the variables each uses. Flags: --project value.GET /_rustybin/teststests.read
rustybin tests show <name>One saved test.GET /_rustybin/tests/{name}tests.read
rustybin tests save <name> --capture ID [--gateway U] [--description D] [--project P]Save a captured request as a test (its status asserted; credentials become {{variables}}). Flags: --capture value, --gateway value, --description value, --project value.POST /_rustybin/teststests.write
rustybin tests put <name> --file FSave or replace a test from a file (JSON or YAML: request, gateway, assert). Flags: --file value.PUT /_rustybin/tests/{name}tests.write
rustybin tests delete <name>Delete a saved test.DELETE /_rustybin/tests/{name}tests.write
rustybin tests run [--names a,b] [--project P] [--var NAME=value]... [--junit]Run saved tests (all by default); exits 1 when one fails. --junit prints JUnit XML for CI. Flags: --names value, --var value, --junit, --project value.POST /_rustybin/tests/runtests.run
rustybin tests export [<name>] [--format hurl|arazzo]Every saved test as one Hurl file (hurl --test --variable base_url=...), or the one named: as Hurl, or as an Arazzo document (--format arazzo). Flags: --format value.GET /_rustybin/tests/export, GET /_rustybin/tests/{name}/exporttests.read
rustybin tests import <file> [--dry-run] [--gateway U] [--replace] [--project P]Import an Arazzo document: each workflow becomes a multi-step saved test against the instance's mocks; what has no counterpart is listed as left out. --dry-run saves nothing. Flags: --dry-run, --gateway value, --replace, --project value.POST /_rustybin/tests/importtests.write
rustybin tests runs [--limit N] [--cursor C]The history of test runs, newest first: when, the trigger, who, the counts, what changed since the previous run. Flags: --limit value, --cursor value.GET /_rustybin/tests/runstests.read
rustybin tests run-show <id> [--junit]One kept run: each test's result and failures, the change since the previous run; --junit prints its JUnit XML. Flags: --junit.GET /_rustybin/tests/runs/{id}tests.read
rustybin tests runs-clearForget every kept test run (the tests stay).DELETE /_rustybin/tests/runstests.write
rustybin tests schedulesThe saved tests on a schedule: when, what, on or off, the last result, the next time, the last notice.GET /_rustybin/tests/schedulestests.read
rustybin tests schedule-show <name>One test schedule with its status and recent outcomes.GET /_rustybin/tests/schedules/{name}tests.read
rustybin tests schedule-save <name> (--every D | --at HH:MM) [--names a,b | --prefix P] [--webhook U] [--notify-recovery] [--disabled]Save or replace a test schedule: every 5m to 24h, or at HH:MM UTC; every saved test unless --names or --prefix. Flags: --every value, --at value, --names value, --prefix value, --webhook value, --notify-recovery, --disabled, --description value.PUT /_rustybin/tests/schedules/{name}tests.write
rustybin tests schedule-run <name>Run a test schedule now, as the scheduler would (kept in the history); exits 1 when it fails.POST /_rustybin/tests/schedules/{name}/runtests.run
rustybin tests schedule-delete <name>Delete a test schedule (the tests and the history stay).DELETE /_rustybin/tests/schedules/{name}tests.write
rustybin tests list
rustybin tests show order-1
rustybin tests save order-1 --capture 0123456789abcdef
rustybin tests put order-1 --file '{"request":{"path":"/status/200"},"assert":[{"status":200}]}'
rustybin tests delete order-1 --yes
rustybin tests run --junit
rustybin tests export
rustybin tests import '{"arazzo":"1.0.1","info":{"title":"Pets","version":"1"},"sourceDescriptions":[{"name":"petstore","url":"./petstore.yaml","type":"openapi"}],"workflows":[{"workflowId":"list-pets","steps":[{"stepId":"list","operationId":"listPets","successCriteria":[{"condition":"$statusCode == 200"}]}]}]}' --dry-run
rustybin tests runs --limit 5
rustybin tests run-show 20261103T101500000Z-abc123 --junit
rustybin tests runs-clear --yes
rustybin tests schedules
rustybin tests schedule-show nightly
rustybin tests schedule-save nightly --every 1h --prefix order
rustybin tests schedule-run nightly
rustybin tests schedule-delete nightly --yes

scenario

Guided gateway scenarios: prepare the upstream, check through the gateway, clean up

CommandWhat it doesCallsNeeds
rustybin scenario listThe gateway scenarios (HTTP: retries, rate limiting, credential injection, timeouts, caching, circuit breakers, request size limits, CORS, header transformation; AI: token limits, model fallback, semantic caching, prompt and response guards, load balancing; MCP: tool poisoning, rug pull, tool shadowing, result injection, oversized results, exfiltration links) and your runs.GET /_rustybin/scenariosinstance.read
rustybin scenario start <scenario>Prepare a run: its upstream and the steps to configure on the gateway.POST /_rustybin/scenarios/{id}/runsscenarios.run
rustybin scenario show <scenario> <run>A run: the setup, what it created, the last verdict.GET /_rustybin/scenarios/{id}/runs/{run}instance.read
rustybin scenario check <scenario> <run> --gateway U [--limit N] [--half-open-ms MS] [--size-limit BYTES] [--allowed-origin O] [--refused-origin O] [--upstream-cors] [--add-request-header H] [--add-request-value V] [--remove-request-header H] [--add-response-header H] [--token-limit N] [--fail-kind K] [--skip-injection] [--min-share PCT] [--max-result-kib KIB]Send the run's test requests through the gateway and compare what the client got with what reached the upstream; exits 1 when an expectation fails. Flags: --gateway value, --limit value, --half-open-ms value, --size-limit value, --allowed-origin value, --refused-origin value, --upstream-cors, --add-request-header value, --add-request-value value, --remove-request-header value, --add-response-header value, --token-limit value, --fail-kind value, --skip-injection, --min-share value, --max-result-kib value.POST /_rustybin/scenarios/{id}/runs/{run}/checkscenarios.run
rustybin scenario end <scenario> <run>End a run: remove the mock and counters it created, nothing else.DELETE /_rustybin/scenarios/{id}/runs/{run}scenarios.run
rustybin scenario list
rustybin scenario start caching
rustybin scenario show caching 1a2b3c4d
rustybin scenario check caching 1a2b3c4d --gateway http://localhost:8000/catalog-api
rustybin scenario end caching 1a2b3c4d --yes

storyboard

Demo storyboards: a scripted demo with a talk track, rehearsed step by step

CommandWhat it doesCallsNeeds
rustybin storyboard list [--project P]The demo storyboards and the variables each uses. Flags: --project value.GET /_rustybin/storyboardstests.read
rustybin storyboard show <name>One storyboard: its steps, and where you are in it.GET /_rustybin/storyboards/{name}tests.read
rustybin storyboard apply [<name>] --file F [--project P]Save or replace a storyboard from a file (JSON or YAML: title, steps with a talk_track, an action and a reset); the name is the argument, else the file's. Flags: --file value, --project value.PUT /_rustybin/storyboards/{name}tests.write
rustybin storyboard run <name> [--step N] [--var NAME=value]...Rehearse a storyboard: run every step in order (or one with --step) with your own permissions and print each verdict; exits 1 when a step fails. Flags: --step value, --var value.POST /_rustybin/storyboards/{name}/steps/{index}/runtests.run
rustybin storyboard reset <name> [--var NAME=value]...Before a rehearsal: run every step's reset action, end the scenario runs the storyboard started, clear your progress. Flags: --var value.POST /_rustybin/storyboards/{name}/resettests.run
rustybin storyboard delete <name>Delete a storyboard (what its steps changed stays).DELETE /_rustybin/storyboards/{name}tests.write
rustybin storyboard list
rustybin storyboard show retry-demo
rustybin storyboard apply retry-demo --file '{"title":"Retries","steps":[{"title":"Open the mocks","action":{"type":"open_view","route":"#/mocks"}}]}'
rustybin storyboard run retry-demo
rustybin storyboard reset retry-demo
rustybin storyboard delete retry-demo --yes

pack

Customer demo packs: a demo's mocks, tests and storyboards applied and torn down as one

CommandWhat it doesCallsNeeds
rustybin pack listThe demo packs applied to the instance and what each holds now.GET /_rustybin/packsconfig.export
rustybin pack apply <file|dir> [--dry-run] [--untrusted]Apply a demo pack: a file, or a directory with a rustybin.yaml (its spec files are read here and sent inline). Everything goes to a new project named after the pack; a name that exists is refused. --dry-run previews. Flags: --dry-run, --untrusted.POST /_rustybin/packs/applyconfig.apply
rustybin pack teardown <name> [--dry-run]Remove an applied pack: what its project holds, its test schedules, the console title it set and the project. --dry-run lists it. Flags: --dry-run.DELETE /_rustybin/packs/{name}config.apply
rustybin pack export <project> [--output FILE] [--format yaml|json]A project's mocks, tests and storyboards as a pack (specs inline): a demo built by hand becomes reusable. Flags: --output value, --format value.GET /_rustybin/packs/{name}/exportconfig.export
rustybin pack list
rustybin pack apply '{"pack":{"name":"acme"},"storyboards":[{"name":"acme-demo","steps":[{"title":"Welcome"}]}]}' --dry-run
rustybin pack teardown acme --dry-run
rustybin pack export acme

record

Recordings of a real API: a proxy URL to send traffic through, then a mock built from it

CommandWhat it doesCallsNeeds
rustybin record listYour recordings of real APIs: upstream, proxy URL, state, counts.GET /_rustybin/recordingsmocks.read
rustybin record start <name> --upstream URL [--mock NAME]Start a recording: send requests to the proxy URL it answers (as you would to the upstream); the upstream's host must be in RUSTYBIN_EGRESS_ALLOW (purpose record). Flags: --upstream value, --mock value.POST /_rustybin/recordingsmocks.write
rustybin record show <name>A recording with what it kept (credentials removed).GET /_rustybin/recordings/{name}traffic.read
rustybin record stop <name>Stop recording: the proxy refuses from now on.POST /_rustybin/recordings/{name}/stopmocks.write
rustybin record build <name> [--mock NAME] [--dry-run]Build a mock from a recording: an inferred spec, the recorded answers as examples; --dry-run prints the spec. Flags: --mock value, --dry-run.POST /_rustybin/recordings/{name}/buildmocks.write
rustybin record delete <name>Delete a recording and what it kept (the mock it built stays).DELETE /_rustybin/recordings/{name}mocks.write
rustybin record list
rustybin record start orders --upstream https://api.example.com/v1
rustybin record show orders
rustybin record stop orders
rustybin record build orders --dry-run
rustybin record delete orders --yes

agents

AI agents on the management MCP server

CommandWhat it doesCallsNeeds
rustybin agents list [--owner U]Every AI agent that called the management server, the user each acts for, and the policy (yours only without agents.read). Flags: --owner value.GET /_rustybin/agentssigned in
rustybin agents get <id>One agent: its user, tools, last errors, sessions.GET /_rustybin/agents/{id}signed in
rustybin agents rights <id> [--ceiling C] [--allow T] [--deny T] [--note N] [--reset]Limit an agent: a ceiling (a role or a 0.3 ceiling), tools allowed or denied, a note; --reset goes back to the rules. Your own agents only to limit them, without agents.manage. Flags: --ceiling value, --allow value, --deny value, --note value, --reset.PATCH /_rustybin/agents/{id}signed in
rustybin agents revoke <id>Refuse the agent's calls, end its sessions, revoke its tokens.POST /_rustybin/agents/{id}/revokesigned in
rustybin agents restore <id>Undo a revocation.POST /_rustybin/agents/{id}/restoresigned in
rustybin agents end-sessions <id>End the agent's MCP sessions.DELETE /_rustybin/agents/{id}/sessionssigned in
rustybin agents tailFollow the agents' calls as they happen. Flags: --max value, --timeout value.GET /_rustybin/agents/eventssigned in
rustybin agents list
rustybin agents get 1f3a...
rustybin agents rights 1f3a... --ceiling viewer --deny try_request
rustybin agents revoke 1f3a... --yes
rustybin agents restore 1f3a...
rustybin agents end-sessions 1f3a...
rustybin agents tail --max 10

ai

AI assist: status, models, usage, test, run a task

CommandWhat it doesCallsNeeds
rustybin ai statusWhether AI assist is on, the provider, the caps.GET /_rustybin/assistassist.use
rustybin ai models [--load]The configured provider's models with tier, context, price, whether each reasons and the jobs it runs; --load asks the provider for its list with the stored key first (admin). Flags: --load.GET /_rustybin/assist/models, POST /_rustybin/assist/modelsassist.use, settings.write
rustybin ai jobsWhich model each AI job (task) runs on, and whether a setting chose it.GET /_rustybin/assist/modelsassist.use
rustybin ai use <model> [--job TASK] [--fast]Choose a model: the model for the capable jobs, with --fast the fast model, with --job the model of one job (empty with --job clears the choice). Flags: --job value, --fast.PATCH /_rustybin/settingssettings.write
rustybin ai usageCalls and tokens since start.GET /_rustybin/assist/usagesettings.read
rustybin ai testCall the provider once with the configured key.POST /_rustybin/assist/testsettings.write
rustybin ai run <task> [--input JSON] [--model M]Run an assist task (free_answer, explain, suggest, ...) and print its answer. Flags: --input value, --model value.POST /_rustybin/assist/runassist.use
rustybin ai status
rustybin ai models --load
rustybin ai jobs
rustybin ai use gpt-5-mini --job explain
rustybin ai usage
rustybin ai test
rustybin ai run free_answer --input '{"question": "what does /delay do?"}'

mcp

The MCP inspector: servers, saved connections, checks, calls through the relay

CommandWhat it doesCallsNeeds
rustybin mcp serversThis instance's MCP servers.GET /_rustybin/mcp-serversmcp.inspect
rustybin mcp connectionsThe saved connections.GET /_rustybin/mcp-connectionsmcp.inspect
rustybin mcp connection <id>One saved connection.GET /_rustybin/mcp-connections/{id}mcp.inspect
rustybin mcp save-connection <id> --target URLSave a connection (its secrets sealed on the instance). Flags: --target value, --name value, --transport value, --mode value, --auth value, --oauth-client value, --secret value.PUT /_rustybin/mcp-connections/{id}mcp.connections
rustybin mcp delete-connection <id>Forget a saved connection.DELETE /_rustybin/mcp-connections/{id}mcp.connections
rustybin mcp check <target>Run the checks against a server (--junit writes a report). Flags: --transport value, --version value, --header value, --connection value, --checks value, --junit value.POST /_rustybin/mcp-checksmcp.inspect
rustybin mcp runsThe saved check runs.GET /_rustybin/mcp-checksmcp.inspect
rustybin mcp run <id>One saved check run.GET /_rustybin/mcp-checks/{id}mcp.inspect
rustybin mcp delete-run <id>Forget a saved check run.DELETE /_rustybin/mcp-checks/{id}mcp.connections
rustybin mcp call <target> <method> [--params JSON]Send one JSON-RPC message to a server through the instance's relay. Flags: --params value, --transport value, --header value, --connection value.POST /_rustybin/mcp-relaymcp.inspect
rustybin mcp tools <target>The tools a server offers (tools/list through the relay). Flags: --header value, --connection value.POST /_rustybin/mcp-relaymcp.inspect
rustybin mcp fetch <url>Fetch an OAuth discovery document through the instance.POST /_rustybin/mcp-relay/fetchmcp.inspect
rustybin mcp end-relay <session>End a relay session.DELETE /_rustybin/mcp-relay/{session}mcp.inspect
rustybin mcp client-document [--legacy]The inspector's client ID metadata document (its client id where an authorization server supports one), from its address outside the control plane; --legacy reads the address 0.7.0 used, which names itself as the client id. Flags: --legacy.GET /.well-known/rustybin-inspector-client.json, GET /_rustybin/oauth/inspector-client.jsonopen
rustybin mcp servers
rustybin mcp connections
rustybin mcp connection acme
rustybin mcp save-connection acme --target https://mcp.acme.example/mcp --auth '{"kind": "bearer"}' --secret bearer=- < token.txt
rustybin mcp delete-connection acme --yes
rustybin mcp check http://localhost:8080/mcp --junit mcp.xml
rustybin mcp runs
rustybin mcp run 3
rustybin mcp delete-run 3 --yes
rustybin mcp call http://localhost:8080/mcp tools/call --params '{"name": "echo", "arguments": {"message": "hi"}}'
rustybin mcp tools http://localhost:8080/mcp
rustybin mcp fetch https://mcp.acme.example/.well-known/oauth-authorization-server
rustybin mcp end-relay 5b2c
rustybin mcp client-document

registry

The mock MCP registry and registry browsing

CommandWhat it doesCallsNeeds
rustybin registry statusThe mock registry: scenario, entries, capacity.GET /_rustybin/registryinstance.read
rustybin registry publish <file>Publish a server.json to the mock registry (through its publish API).(none)
rustybin registry delete <name> [--version V]Delete a published entry. Flags: --version value.DELETE /_rustybin/registry/servers/{serverName}registry.write
rustybin registry validate <file>Validate a server.json against the schema and the semantic checks.POST /_rustybin/registry/validateinstance.read
rustybin registry browse [--registry U] [--search S] [--cursor C]Browse a registry (the official one by default) through the instance. Flags: --registry value, --search value, --cursor value.GET /_rustybin/registry/browsemcp.inspect
rustybin registry status
rustybin registry publish server.json
rustybin registry delete io.example/orders --yes
rustybin registry validate server.json
rustybin registry browse --search weather

portal

The dev portal

CommandWhat it doesCallsNeeds
rustybin portal statusThe portal: on or off, who may read it, how many users read closed items, each item and its access (open or closed).GET /_rustybin/portalinstance.read
rustybin portal publish <id> [--access open|closed] [--secure]Publish an item: mock:NAME, mcp:SERVER, llm, a2a:AGENT, tools or registry, open or closed (a closed mock needs an API key or Basic user of its own on every call; --secure sets random ones). Flags: --title value, --summary value, --tags value, --contact value, --order value, --no-credentials, --access value, --secure.PUT /_rustybin/portal/items/{id}portal.publish
rustybin portal unpublish <id>Remove an item from the portal.DELETE /_rustybin/portal/items/{id}portal.publish
rustybin portal insightsViews, downloads and Try it calls.GET /_rustybin/portal/insightsinstance.read
rustybin portal brandingThe portal.* settings.GET /_rustybin/settingssettings.read
rustybin portal openThe portal's URL.(none)
rustybin portal status
rustybin portal publish mock:orders --title "Orders API" --tags payments
rustybin portal unpublish mock:orders --yes
rustybin portal insights
rustybin portal branding
rustybin portal open

config

The whole instance as rustybin.yaml

CommandWhat it doesCallsNeeds
rustybin config export [--format F] [--secrets S] [--output FILE]The whole instance as rustybin.yaml (yaml, json, or a bundle to a file). Flags: --format value, --secrets value, --output value.GET /_rustybin/config/exportconfig.export
rustybin config apply <file> [--dry-run] [--prune]Apply a document; a dry run shows the changes and touches nothing. Flags: --dry-run, --prune.POST /_rustybin/config/applyconfig.apply
rustybin config diff <file>What applying a document would change (a dry run). Flags: --prune.POST /_rustybin/config/applyconfig.apply
rustybin config schemaThe JSON Schema of rustybin.yaml, version 2.GET /_rustybin/config/schemainstance.read
rustybin config check <file>Check a document offline: every section parses, every mock compiles.(none)
rustybin config export --output rustybin.yaml
rustybin config apply rustybin.yaml --dry-run
rustybin config diff rustybin.yaml
rustybin config schema
rustybin config check rustybin.yaml

git

Source control

CommandWhat it doesCallsNeeds
rustybin git status [--fetch]The repository, the working copy, the drift, the timeline. Flags: --fetch.GET /_rustybin/gitgit.read
rustybin git initConnect the repository (clone, or start an empty working copy).POST /_rustybin/git/initgit.write
rustybin git commit -m "<message>" [--checkpoint NAME]...Export the instance into the working copy and commit; --checkpoint also commits a local checkpoint (repeat it, or a,b). Flags: --message value, -m value, --checkpoint value.POST /_rustybin/git/commitgit.write
rustybin git pushPush the branch.POST /_rustybin/git/pushgit.write
rustybin git pull [--apply] [--dry-run] [--prune]Fetch and fast-forward; --apply applies the repository's document. Flags: --apply, --dry-run, --prune.POST /_rustybin/git/pullgit.write
rustybin git resolve --with instance|repository|pull-request [--branch NAME] [--open] [--dry-run]The ways out of a diverged branch (git status shows what differs): the instance's copy wins, the repository's wins, or the instance's side goes to a new branch for a pull request at the git host (nothing applied). With pull-request, --open asks the git host's API to open the pull request (never to merge it) and prints its address; when the host does not open it the branch stays pushed and the reason is printed. --dry-run previews any of them. Flags: --with value, --message value, --branch value, --dry-run, --open.POST /_rustybin/git/resolvegit.write
rustybin git key [--generate] [--replace]The deploy key's public half; --generate makes one. Flags: --generate, --replace.GET /_rustybin/git/key, POST /_rustybin/git/keygit.read, git.write
rustybin git historyThe last commits of the working copy.GET /_rustybin/git/historygit.read
rustybin git branchesThe remote's branches, and the one this instance is on.GET /_rustybin/git/branchesgit.read
rustybin git switch <branch> [--dry-run] [--prune] [--no-apply]Move this instance to another branch of the remote (a branch per environment). --dry-run shows what applying that branch's document would change; without it the branch is stored (git.branch), taken, and its document applied. Flags: --dry-run, --prune, --no-apply.POST /_rustybin/git/branchgit.write
rustybin git branch <name> [-m "<message>"] [--dry-run]Start a branch the remote does not have from this instance's configuration: committed, pushed, and the instance commits to it from now on. Flags: --message value, -m value, --dry-run.POST /_rustybin/git/branchgit.write
rustybin git signing-key [--generate] [--replace]The commit signing key's public half and fingerprint, to register at the git host as a signing key; --generate makes one. Commits are signed when the git.sign setting is on. Flags: --generate, --replace.GET /_rustybin/git/signing-key, POST /_rustybin/git/signing-keygit.read, git.write
rustybin git signers [--add "<name> <public key>"]... [--remove NAME]...Verified pulls: whether pulled commits are verified (the git.verify setting), the allowed signers with their fingerprints, the last verified head and the last refusal. --add and --remove change the git.allowed_signers setting (public keys, not secrets). Flags: --add value, --remove value.GET /_rustybin/git, GET /_rustybin/settings, PATCH /_rustybin/settingsgit.read, settings.read, settings.write
rustybin git status --fetch
rustybin git init
rustybin git commit -m "Add the orders mock"
rustybin git push
rustybin git pull --apply --dry-run
rustybin git resolve --with repository --dry-run
rustybin git key --generate
rustybin git history
rustybin git branches
rustybin git switch staging --dry-run
rustybin git branch staging --dry-run
rustybin git signing-key
rustybin git signers

harness

Load tests on the instance (--remote); validate, run and report work offline too

CommandWhat it doesCallsNeeds
rustybin harness statusHarness mode: roles, caps, runs, the kill switch.GET /_rustybin/harnessharness.read
rustybin harness schemaThe JSON Schema of a scenario.GET /_rustybin/harness/schemaharness.read
rustybin harness scenariosThe built-in and saved scenarios.GET /_rustybin/harness/scenariosharness.read
rustybin harness scenario <name> [--yaml]One scenario. Flags: --yaml.GET /_rustybin/harness/scenarios/{name}harness.read
rustybin harness save-scenario <name> <file>Save a scenario under a name.PUT /_rustybin/harness/scenarios/{name}harness.run
rustybin harness delete-scenario <name>Delete a saved scenario.DELETE /_rustybin/harness/scenarios/{name}harness.run
rustybin harness validate <file> --remoteValidate a scenario on the instance (without --remote: offline, in this process). Flags: --remote.POST /_rustybin/harness/validateharness.read
rustybin harness preview <file>The run plan of a scenario: stages, requests, duration.POST /_rustybin/harness/previewharness.read
rustybin harness import <file> [--format F] [--var NAME=value]... [--environment FILE]A recording (a HAR file, or saved GET /_rustybin/requests), a Postman collection (v2.1), an Artillery script or an Arazzo document (its steps against the instance's mocks) as a scenario's source; what does not map is named, nothing in the file is run. --var gives a value for a variable the file does not define, --environment a collection's whole Postman environment file. Sends nothing. Flags: --format value, --var value, --environment value.POST /_rustybin/harness/importharness.read
rustybin harness runsThe runs on this node.GET /_rustybin/harness/runsharness.read
rustybin harness run <file> --remote [--wait]Start a run on the instance (without --remote: from this process); --wait follows it and prints the report. Flags: --remote, --wait, --format value.POST /_rustybin/harness/runsharness.run
rustybin harness show <run>One run: state, progress, the live controls.GET /_rustybin/harness/runs/{run}harness.read
rustybin harness tune <run> <change>A live change (JSON or a file): rate, users, pause, resume, ...PATCH /_rustybin/harness/runs/{run}harness.run
rustybin harness stop <run>Stop a run.POST /_rustybin/harness/runs/{run}/stopharness.run
rustybin harness stop-allThe kill switch: stop every run on the node.POST /_rustybin/harness/stopharness.run
rustybin harness events <run>Follow a run's events. Flags: --max value, --timeout value.GET /_rustybin/harness/runs/{run}/eventsharness.read
rustybin harness report <run> --remote [--format F]A run's report (without --remote: render a saved report file). Flags: --remote, --format value.GET /_rustybin/harness/runs/{run}/reportharness.read
rustybin harness clustersThe clusters this node leads.GET /_rustybin/harness/clustersharness.read
rustybin harness create-cluster [--body JSON]Create a cluster (cluster_id, min_nodes, lease, join_token). Flags: --body value.POST /_rustybin/harness/clustersharness.cluster
rustybin harness cluster <id>A cluster: nodes, leader, runs.GET /_rustybin/harness/clusters/{id}harness.read
rustybin harness delete-cluster <id>Dissolve a cluster.DELETE /_rustybin/harness/clusters/{id}harness.cluster
rustybin harness leader <id>The cluster's leader.GET /_rustybin/harness/clusters/{id}/leaderharness.read
rustybin harness step-aside <id>Before maintenance: the leader hands the cluster to the first in the succession, with the run still on.POST /_rustybin/harness/clusters/{id}/leader/step-asideharness.cluster
rustybin harness upstreams <id>The cluster's server nodes as the gateway reaches them.GET /_rustybin/harness/clusters/{id}/upstreamsharness.read
rustybin harness cluster-runs <id>The cluster's runs.GET /_rustybin/harness/clusters/{id}/runsharness.read
rustybin harness cluster-run <id> <file>Create a cluster run from a scenario (start it with cluster-start).POST /_rustybin/harness/clusters/{id}/runsharness.run
rustybin harness cluster-show <id> <run>One cluster run.GET /_rustybin/harness/clusters/{id}/runs/{run}harness.read
rustybin harness cluster-tune <id> <run> <change>A live change on a cluster run.PATCH /_rustybin/harness/clusters/{id}/runs/{run}harness.run
rustybin harness cluster-start <id> <run>Start a cluster run.POST /_rustybin/harness/clusters/{id}/runs/{run}/startharness.run
rustybin harness cluster-stop <id> <run>Stop a cluster run.POST /_rustybin/harness/clusters/{id}/runs/{run}/stopharness.run
rustybin harness cluster-events <id> <run>Follow a cluster run's events. Flags: --max value, --timeout value.GET /_rustybin/harness/clusters/{id}/runs/{run}/eventsharness.read
rustybin harness cluster-report <id> <run> [--format F]A cluster run's report. Flags: --format value.GET /_rustybin/harness/clusters/{id}/runs/{run}/reportharness.read
rustybin harness join <cluster-url> --join-token TMake this node join a cluster. Flags: --join-token value, --advertise value.POST /_rustybin/harness/joinharness.cluster
rustybin harness leaveLeave the cluster.POST /_rustybin/harness/leaveharness.cluster
rustybin harness status
rustybin harness schema
rustybin harness scenarios
rustybin harness scenario smoke --yaml
rustybin harness save-scenario my-smoke smoke.yaml
rustybin harness delete-scenario my-smoke --yes
rustybin harness validate smoke.yaml --remote
rustybin harness preview smoke.yaml
rustybin harness import recording.har
rustybin harness runs
rustybin harness run smoke.yaml --remote --wait
rustybin harness show r-1
rustybin harness tune r-1 '{"rate": 50}'
rustybin harness stop r-1
rustybin harness stop-all --yes
rustybin harness events r-1
rustybin harness report r-1 --remote --format junit
rustybin harness clusters
rustybin harness create-cluster --body '{"min_nodes": {"clients": 2}}'
rustybin harness cluster c-1
rustybin harness delete-cluster c-1 --yes
rustybin harness leader c-1
rustybin harness step-aside perf-1
rustybin harness upstreams c-1
rustybin harness cluster-runs c-1
rustybin harness cluster-run c-1 smoke.yaml
rustybin harness cluster-show c-1 cr-1
rustybin harness cluster-tune c-1 cr-1 '{"rate": 50}'
rustybin harness cluster-start c-1 cr-1
rustybin harness cluster-stop c-1 cr-1
rustybin harness cluster-events c-1 cr-1
rustybin harness cluster-report c-1 cr-1
rustybin harness join https://leader.example/_rustybin/harness/clusters/c-1 --join-token ...
rustybin harness leave

keys

API keys in shared mode

CommandWhat it doesCallsNeeds
rustybin keys usage [--day D] [--after A] [--limit N]Per-key usage in shared mode. Flags: --day value, --after value, --limit value.GET /_rustybin/keys/usagesettings.read
rustybin keys usage --day 2026-10-30

egress

The outbound connection policy

CommandWhat it doesCallsNeeds
rustybin egress showThe outbound policy: the allowlist, each feature's rule, the last decisions.GET /_rustybin/egresssettings.read
rustybin egress check <url> [--purpose P]What the outbound policy would say to a URL, without calling it. Exits 1 when it would refuse. Flags: --purpose value.GET /_rustybin/egress/checksettings.read
rustybin egress show
rustybin egress check https://api.example.com --purpose git

audit

The audit log: who changed what, every sign-in and every refusal

CommandWhat it doesCallsNeeds
rustybin audit list [--actor A] [--action A] [--target T] [--since S] [--until U] [--result R] [--limit N] [--cursor C]The audit log, newest first: who did what and when, sign-ins and refusals (audit.read). --cursor pages back with the next_cursor printed last. Flags: --actor value, --action value, --target value, --since value, --until value, --result value, --limit value, --cursor value.GET /_rustybin/auditaudit.read
rustybin audit tail [--actor A] [--action A] [--target T] [--result R]Follow the audit log: one line per new entry that matches (audit.read). Flags: --actor value, --action value, --target value, --result value, --max value, --timeout value.GET /_rustybin/audit/streamaudit.read
rustybin audit list --since 1h --result refused
rustybin audit tail --action mocks --max 10

Not covered by a command

The management MCP endpoint (rustybin mcp-stdio bridges a client to it), the agent sign-in's consent API (the console's screen; rustybin login --agent walks the rest), the harness cluster's node-to-node routes, a request bin's capture URLs and a mock's data plane.