minitest CLI, grouped by area, with the flags each one takes. For the install and a quick tour with your coding agent, see Cursor and Claude.
persona manages test accounts, test-account manages the logins inside them, batch manages runs, and df manages suite branches. Each section says what the command means in the dashboard’s words. minitest <command> --help prints the same flags from your installed version.
Global
The global flags go before the subcommand:
Two groups declare their own flag, which then goes after the subcommand:
app-knowledge takes its own --app, and auth api-key takes its own --json.
Environment variables
Exit codes
Auth
The CLI signs in from, in order:MINITEST_TOKEN, then MINITEST_API_KEY, then the session saved by minitest auth login.
The
api-key commands need a browser session (or MINITEST_TOKEN): a key can’t create or revoke keys, and the command exits 2. They take their own --json, after the subcommand.
Keys don’t expire. To rotate one, mint the new key, update your CI secret, then revoke the old one:
Apps
apps create
apps dependencies
Network and backend API
These match the options in App settings → General. Changing the proxy or the private network needs the owner or admin role. Withset, options you don’t pass stay as they are.
Builds
build upload
Without
--physical, iOS builds must be simulator builds. A device .ipa uploaded without --physical, or a simulator build uploaded with it, is rejected with exit code 5 and a hint. See Upload a build.
build list
build from-commit
The SHA is the full 40-character one. Needs a linked repository, see Builds from your repository.
env
The app’s build environment variables, the ones in Builds & test data → Builds → Build environment variables.
set, unset and clear take --yes to confirm and --dry-run to show the change without applying it.
Scenarios
The scenarios of an app, the list on Test suite → Tests. The command wasminitest user-story before; that name still works and prints a warning.
scenario create and scenario update
allow-setup-commit takes --customer-quote <text>, required: the words of the person who allowed it, quoted.
scenario list
scenario-binding
Attach test accounts, files and skills to a scenario. Each command replaces the current set. It was user-story-binding before, and that name still works.
Test accounts
persona
The app’s test accounts, in Builds & test data → Test accounts. The CLI calls a test account a persona. Every command takes its ID or its name.
test-account
The logins inside a test account. The CLI calls a login a test account.
add and update take these flags:
update also takes --clear-username, --clear-password, --clear-phone-number, --clear-static-otp-code, --clear-about and --clear-test-card. Pass an empty string to a --*-secret flag to stop using that secret. Setup and sign-in types are in Test accounts and sign-in.
Tags
Tag names are 1 to 40 characters, without commas. Tags are shared by every app of the workspace.
flow-types is the older command for scenario types, which tags replaced: it still works and points you to tags.
Runs
In the CLI, a batch is what the dashboard calls a run: one or more scenarios started together. A run ID fromrun start or run status is one scenario’s run inside it.
Devices and builds for a run
These flags work onrun start, run all and, where noted, run from-commit:
run from-commit
run verdicts
run recording and run logs
run frames <video> takes --start, --end, --every (seconds, default 2), --at for exact timestamps, --columns, --width and --out.
run ask
When Mini needs something only a person can settle, it asks, and the scenario shows Needs input. Answer from here or from the run page.
batch
batch list filters with --status, --result (both repeatable), --commit-sha, --scenario <scenario_id> and --search, and pages with --page, --page-size (up to 100) and --all.
PR checks
Check one pull request from your CI with its description, ticket and builds, with no access to your code. See PR check from CI for the flow, the verdicts and CI examples.pr check
At least one of
--ios-build, --android-build or --web-url.
| --full | Re-run every check on this push. |
| --report-file <file> | Write the Markdown report. |
| --fail-on <critical\|warning> | What fails the job. Default critical. |
| --no-wait | Print the check ID and report link, then exit 0. |
| --json | Print the check’s events as NDJSON. |
| --timeout <seconds> | Stop waiting, with exit code 3. The check keeps running. No limit by default. |
The pr commands have their own exit codes, so a CI job can branch on the verdict: 0 ready (and ready with warnings, unless --fail-on warning), 1 not ready, 2 Mini needs an answer, 3 when the check errored on our side, the input was refused or --timeout was reached.
Schedules
Runs that start on their own and post a summary to Slack, as on Test suite → Schedules. Address a schedule by name or ID.schedules create and schedules update
On
update, a scope flag (--suite, --tag, --scenario) replaces what runs, any --ios-* or --android-* flag redefines that platform, and --browser replaces the browsers.
Script runs
Your own Appium tests that ran on Minitap devices, and Selenium and Playwright tests on Minitap browsers, as in Results → Script runs. See Run your own Appium tests and Run your own Selenium and Playwright tests.
The downloads and
report take --test <id, session id or name> when the run has several tests; the downloads also take --out <file>.
Drafts
draft
Ask Mini for a change to the suite and follow it through, as in Workbench → Proposed changes. You say what should change, Mini writes the scenarios, the draft checks them on a build, and you merge.
draft ask list <draft_id>, draft ask answer <draft_id> <ask_id> (with --answer, --answer-file, --field KEY=VALUE or --field-file KEY=PATH), and draft ask decline <draft_id> <ask_id>. Answering turns auto-merge off.
df
Low-level branches of the suite, for tools that write changes themselves without Mini. To ask Mini for a change, use draft, and never write into a draft’s branch with df apply.
Issues
Failed criteria to triage, as on Results → Issues. The output is JSON.issues list
issues not-a-bug takes --scope scenario|tag:<name>|app for where the rule Mini learns applies (default the scenario), --keep-open to send the feedback and leave the issue open, and --timeout in seconds (default 300).
issues ticket
File an issue in your tracker and keep the link, as from the issue page. The tracker is linear, jira, notion or github, connected in Settings → Integrations first.
Knowledge
What Mini knows about the app, on Test suite → Knowledge. Each element has a job, keeps a history and records who changed it. See Knowledge.update takes --content <text> or --content-file <path> and replaces the whole content.
app-knowledge
Workspaces that still see a single Memory page use app-knowledge instead. Its --app goes after the subcommand.
get still works and returns a document built from the three elements, and update is refused: edit the elements instead.
Skills
app-skill
Procedures Mini follows to put the app in the state a test needs, like calling your test backend or opening a debug menu. They live on Test suite → Skills. See Skills.
Link a skill to a scenario with
scenario-binding set-app-skills. The skill command is something else: it prints the CLI’s own agent skill.
Secrets
secret
Values Mini types but never sees: passwords, OTP seeds, test cards, API tokens. They live in Builds & test data → Secrets. Reference one in a scenario or a skill as {{secret:NAME}}, or a card field as {{secret:NAME.number}}. Values are never printed; reading one back takes a reveal in the webapp, which is logged. See Secrets and files.
Kinds are
password, totp (an OTP seed: Mini generates the live code), card, token and text (a fixed code, a PIN).
Test files
test-file
Files Mini can use on the device, like a photo to upload or a document to attach. They live in Builds & test data → Files.
Attach a file to a scenario with
scenario-binding set-files: only attached files are placed on the device.
Screens
The screens Mini mapped when it explored the app. See Exploration.Agent tools and the CLI itself
Installed with
uv tool install minitest-cli, the CLI updates itself in the background when a new release is out, except in CI, in containers and on Windows.
minitest runs the Ruby test runner
The CLI installs two commands that do the same thing: minitest and minitest-cli. Ruby 4 installs a minitest command of its own, and when it comes first in your PATH (Homebrew Ruby, rbenv, asdf or mise), minitest auth login prints Run options: --seed 61234 and # Running:, then exits 0 without doing anything. minitest --version tells you which one runs: this CLI prints minitest-cli <version>, Ruby’s prints minitest 6.x.
Either fix works:
-
Run
minitest-cliinstead ofminitest, with the same commands. Scripts and CI jobs should always callminitest-cli. -
Put the folder uv installs tools in first in your PATH, at the end of
~/.zshrcor~/.bashrc, then open a new terminal:uv tool dir --binprints the folder if yours is not~/.local/bin.
Next steps
Cursor and Claude
Install the CLI and let your coding agent drive it.
Run in CI
Start runs from your pipeline with an API key.
API keys
Create and revoke the keys CI signs in with.
