CLI
outry <COMMAND>outry run
Section titled “outry run”Send requests and run their checks.
outry run <PATHS|NAMES>...Folders expand to every *.outry and *.http file inside them, in alphabetical order; a .outry file
runs every request and flow in it, top to bottom. Files given explicitly run in the given order. A
request or flow can also be given by name (CreateOrder, users.Create) or by line
(api/orders.outry:12). Values captured by save are passed to the following requests; requests called
from .outry share one run cache and cookie jar.
| Flag | Description |
|---|---|
-e, --env <ENV> |
Environment from env.toml (default: default in the config) |
--project <DIR> |
Project folder (default: env.toml is searched upwards from the first path) |
--var <NAME=VALUE> |
Override a variable; can be repeated |
--fail-fast |
Stop at the first failed request |
-v, --verbose |
Print response headers and body |
--json |
Print one JSON object per request (JSON Lines) |
--timeout <SECONDS> |
Request timeout, default 30 |
--fresh |
Do not read or store values saved by save and responses kept by cache: between runs |
--no-keyring |
Do not look up secrets in the system keychain |
--yes |
Send requests marked confirm: true without asking |
--coverage-out <FILE> |
Write every sent request (also those called from other requests) to a JSON log for outry coverage --from |
Exit code: 0 — everything passed, 1 — at least one request failed, 2 — Outry could not start.
outry check
Section titled “outry check”Check the project without sending anything. Exit code 1 if there is an error.
outry check [PATHS]... [--env <ENV>] [--var <NAME=VALUE>]... [--no-keyring] [--no-fmt] [--src <DIR> | --no-src] [--format text|github]Without paths (or with the path of the project itself, outry check api) it checks everything:
- syntax, and in
.outrynames of called requests, their arguments, shapes,schema()files and call cycles; - every environment: calls of requests whose
onlyexcludes it,onlylists with unknown environments, and variables that are defined nowhere in it (names captured bysavesomewhere in the project count as defined). The keychain is not read — a secret counts as defined when it is listed insecrets. The same error in several environments is printed once; - formatting, as
outry fmt --check(--no-fmtturns it off); - the service code, as
outry import go --checkoroutry import rust --check, when ago.modorCargo.tomlis found in the project directory or above it, up to the repository root; a folder found this way without any routes is skipped.--src <DIR>points to the service,--no-srcskips it (--go/--no-goare the old names). A summary line of route coverage is printed too; it is never an error.
With paths only those files are checked, without the service code. --env checks a single environment with its real
variables — --var, OUTRY_*, env.toml and the keychain (--no-keyring turns it off).
--format github prints GitHub Actions annotations.
api/orders/create.outry:1:1: error: not formatted (`outry fmt`)api/orders/create.outry:7:22: error: variable `api_key` is not defined in staging, prodapi/orders/create.outry:9:13: error: `Seed` is limited to dev and cannot be called in prodmain.go:42:1: error: route DELETE /orders/{id} has no request (`outry import go` creates api/orders/delete.outry)12 files, 3 environments, 18 routes: 4 errors, 0 warningsoutry fmt
Section titled “outry fmt”Rewrite .outry files in the canonical style, like gofmt; comments are kept. Prints the changed files.
outry fmt [PATHS]... [--check]PATHS default to the current folder. --check changes nothing and exits with 1 if a file is not
formatted — for CI.
outry convert
Section titled “outry convert”Rewrite .http files into .outry next to them. An existing .outry is never overwritten. See
.http files.
outry convert [PATHS]... [--dry-run] [--rm]| Flag | Description |
|---|---|
--dry-run |
Print the result instead of writing files |
--rm |
Delete each .http after its .outry is written |
outry vars
Section titled “outry vars”Show the final value of every variable in an environment and where it comes from. Secret values (from
the keychain or listed in secrets) are masked.
outry vars [-e <ENV>] [--project <DIR>] [--var <NAME=VALUE>]...project billing-api · env devbase env.toml http://localhost:8080token keychain eyJ…(212 chars)api_key missing not set: outry secret set api_key --env devuser_id saved 42| Flag | Description |
|---|---|
--var <NAME=VALUE> |
Override a variable, as in outry run |
--fresh |
Ignore values saved by save |
--no-keyring |
Do not look up secrets in the system keychain |
--reveal |
Print secret values in full |
--json |
Print a JSON array |
Variables from OUTRY_* and the keychain are only listed for names that appear in env.toml
(including secrets) or in saved values.
outry envs
Section titled “outry envs”List the project’s environments; * marks the default.
outry envs [--dir <DIR>]outry secret
Section titled “outry secret”Store or remove a secret in the system keychain. set reads the value from stdin (in a terminal: one
line, not echoed). Without a keychain (WSL, headless Linux) the secret goes to
~/.config/outry/secrets.toml — see Secrets.
outry secret set <NAME> [-e <ENV>] [--project <DIR>]outry secret rm <NAME> [-e <ENV>] [--project <DIR>]echo -n "$TOKEN" | outry secret set token --env prodoutry init
Section titled “outry init”Create api/env.toml and an example request in the given folder (default: current). Fails if
env.toml already exists.
outry init [DIR]outry import go
Section titled “outry import go”Create a .outry request for every route of a Go service (chi, gin, echo, fiber, net/http, go-zero, go-restful, beego, buffalo) that doesn’t have one
yet. Differences from the code of existing requests
are listed under the route; files change only with --fix. See
Import routes from Go.
outry import go [DIR]DIR is the folder with Go code, scanned recursively (default: current). Files are created in the
project found from the current folder; it must have an env.toml.
| Flag | Description |
|---|---|
--dry-run |
Only print the plan (with --fix — the diff of the fixes) |
--check |
For CI: write nothing, report differences by file, exit with 1 on errors |
--fix |
Fix the differences that can be fixed safely |
--prune |
Delete files whose requests all point at removed routes |
--format <F> |
text (default), github (GitHub Actions annotations), json |
--base <NAME> |
Variable with the service address in existing .http URLs (for matching), default base |
--query <FILE.scm> |
An extra tree-sitter query for another router; can be repeated |
--project <DIR> |
Project folder with env.toml |
--json |
Same as --format json |
outry import rust
Section titled “outry import rust”Create a .outry request for every route of an axum service that doesn’t have one yet and compare the
existing ones with the code. See Import routes from Rust.
outry import rust [DIR]DIR is the crate or workspace, scanned recursively without target/, tests/, benches/ and
examples/ (default: current). The flags are those of outry import go, without --query.
outry coverage
Section titled “outry coverage”Show which routes of a Go or Rust service no request checks: routes without a request, requests without expect,
handler status codes that no expect compares with. Nothing is sent. See
Route coverage.
outry coverage [DIR]DIR is the service (default: the folder with go.mod or Cargo.toml, from the project up to the
repository root).
| Flag | Description |
|---|---|
--min <N> |
Exit with 1 if fewer than N percent of routes are checked |
--from <FILE> |
Run log from outry run --coverage-out: mark executed routes; can be repeated |
--min-executed <N> |
Exit with 1 if fewer than N percent of routes were executed (needs --from) |
--uncovered |
Show only routes without a request, without expect, with unchecked status codes or (with --from) not executed |
--format <F> |
text (default), github (GitHub Actions annotations), json |
--base <NAME> |
Variable with the service address in .http URLs (for matching), default base |
--query <FILE.scm> |
An extra tree-sitter query for another Go router; can be repeated |
--project <DIR> |
Project folder with env.toml |
--json |
Same as --format json |
outry lsp
Section titled “outry lsp”The language server for .outry files over stdin/stdout: outry check errors, environment warnings,
differences from the service code (Go, Rust) with quick fixes, completion, hover, go to definition, formatting and
“▶ Send” code lenses. Editors start it themselves — see Editors.
outry lsp [--env <ENV>] [--no-keyring]| Flag | Description |
|---|---|
--env <ENV> |
Environment for variables and sending, default: default from env.toml |
--no-keyring |
Don’t read secrets from the system keychain |
outry update
Section titled “outry update”Update the CLI to the latest GitHub release. The archive’s SHA-256 checksum is verified before the binary is replaced.
outry update [--check]--check only reports whether a newer version exists.
outry completions
Section titled “outry completions”Print a completion script for a shell: bash, zsh, fish, powershell or elvish. Commands,
flags and their descriptions are completed.
outry completions fish > ~/.config/fish/completions/outry.fishoutry completions bash > ~/.local/share/bash-completion/completions/outryecho 'source <(outry completions zsh)' >> ~/.zshrcRun it again after outry update to pick up new commands.
Environment variables
Section titled “Environment variables”| Variable | Effect |
|---|---|
OUTRY_<NAME> |
Value of the variable name; see Variables |
OUTRY_NO_UPDATE_NOTIFIER=1 |
Disable the new-version notice (NO_UPDATE_NOTIFIER works too) |
CI |
When set, the new-version notice is disabled |
NO_COLOR |
Disable colored output |