Skip to main content
This is the exhaustive reference. For the install steps and a quick tour, see Cursor and Claude.

Global

Authentication is read from the environment or a saved session. See auth for the MINITEST_API_KEY and MINITEST_TOKEN variables and their precedence.

Exit codes

auth

Authentication management. The CLI reads credentials from three sources, in priority order: If both MINITEST_TOKEN and MINITEST_API_KEY are set, MINITEST_TOKEN wins and the CLI prints a warning to stderr once per process. mtk_ keys are scoped to one workspace and grant the same access as a workspace member. Treat one like a deploy token: never commit it, and rotate it if it leaks.

minitest auth login

Run the OAuth 2.0 PKCE browser flow and save a session to ~/.minitest/credentials.json. Opens a browser; waits up to two minutes.

minitest auth logout

Delete the local credentials file.

minitest auth status

Print the current auth state: method (env_token / api_key / oauth / none), user id, email, token expiry. Honors --json.

minitest auth api-key mint

Mint a new mtk_ key for a workspace and print the token. This is the only time the full token is shown, so store it now. Needs an OAuth session or MINITEST_TOKEN; it exits with code 2 if MINITEST_API_KEY is your only credential. Without --json, the token prints alone on stdout (no formatting) so you can pipe it. With --json, the token is the plaintextToken field.

minitest auth api-key list

List the active keys for a workspace. Shows the key id, name, prefix, creation time, and last-used time. The full token is never shown again.

minitest auth api-key revoke

Revoke a key. This is immediate and can’t be undone; calls using that key start failing with an auth error. mtk_ keys don’t expire, so rotate them yourself. Mint the replacement, update the secret in CI, then revoke the old key:
In CI, set the key once and run any command:

apps

Read workspace + app metadata.

minitest apps list

List all apps you can see.

minitest apps create

Create a new app in a workspace. Prints the new app’s UUID to stdout. Example:

user-story

User-story operations. All commands need --app or MINITEST_APP_ID.

minitest user-story create

Create a user story.

minitest user-story list

Paginated list.

minitest user-story get <user-story-id>

Fetch a single story by UUID.

minitest user-story update <user-story-id>

Partial update. At least one mutating flag is required.

minitest user-story delete <user-story-id>

Hard delete. --force is required.

user-story-binding

Attach a profile and files to a story.

minitest user-story-binding set-profile <user-story-id>

Bind or clear a test profile. Exactly one of the two is required.

minitest user-story-binding set-files <user-story-id>

Atomically replace the set of test files bound to a story. Exactly one mode is required.

minitest user-story-binding list-files <user-story-id>

test-profile

App-scoped profiles (credentials the agent uses to sign in).

minitest test-profile create

Example:

minitest test-profile get <profile-id>

minitest test-profile update <profile-id>

minitest test-profile delete <profile-id>

--force is required.

minitest test-profile list

List app-scoped profiles.

minitest test-profile list-shared

List workspace-shared profiles (the ones under Shared by Minitap in the dashboard). Doesn’t need --app.

test-file

App-scoped reference assets (images, docs, video, audio) bound to user stories. Upload cap: 25 MB.

minitest test-file upload <path>

MIME type is guessed from the extension.

minitest test-file get <file-id>

minitest test-file update <file-id>

At least one flag is required.

minitest test-file delete <file-id>

--force is required.

minitest test-file list

flow-types

minitest flow-types list

Print every valid user-story type, one per line (JSON array with --json).

app-knowledge

Read and update the per-app Mini’s memory prompt that grounds agent runs. Both subcommands require --app passed inline.

minitest app-knowledge get

minitest app-knowledge update

build

minitest build upload <file>

Upload a .apk or .ipa. The server validates the build for virtual-device compatibility before accepting it. iOS builds must be Simulator builds. Android builds must be x86_64-compatible.

minitest build list

run

Story-run execution. All subcommands need --app or MINITEST_APP_ID. At least one of --ios-build / --android-build is required to start a run.

minitest run start <user-story>

Start a run for one user story. <user-story> is either a UUID or a case-insensitive name match.

minitest run status <run-id>

minitest run list <user-story>

Historical runs for a story. <user-story> is a name or UUID.

minitest run cancel <run-id>

Cancel a pending or running story-run.

minitest run all

Start a run covering every user story for the app. Fire-and-forget β€” prints the run ID and exits.

batch

The CLI uses the term β€œbatch” for a multi-story run (one click of Run tests in the dashboard = one batch).

minitest batch list

minitest batch get <batch-id>

Full batch payload with every story run.

minitest batch cancel <batch-id>

Cancel the batch and every pending or running story-run in it.

maintenance

Keep a suite in sync with local app code without connecting GitHub. Run these from your app repository: the code stays on your machine, and the CLI sends only the proposed acceptance-criteria edits plus the local HEAD commit SHA. Your own AI coding agent does the reasoning against your checkout.

minitest maintenance

Print the server-composed maintenance plan to hand to your coding agent. Pass --agent to force the raw agent prompt.
The agent then drives the run with the subcommands below.

minitest maintenance context

Open a maintenance run and emit its context as JSON (runId, mode, fromSha, headSha, guardrails, and the stories in scope). The first run on an app returns audit mode over the whole suite; later runs return the previous SHA so the agent can git diff <fromSha>..HEAD.

minitest maintenance affected

minitest maintenance change

minitest maintenance divergence

minitest maintenance status

minitest maintenance complete

Close the run. Pass --changed to advance the watermark, or --no-changed when nothing was produced.

minitest maintenance apply

Apply the pending edits now, or pass --review to print the Release queue link and review them in the dashboard first.

skill

minitest skill

Fetch the latest agent skill for the CLI (the prompt that teaches AI coding agents how to drive it) and print it to stdout.

upgrade

minitest upgrade

Self-update the CLI and refresh the agent skill. Detects whether you installed via Homebrew or uv and runs the right upgrade command, then reinstalls the skill if its content has changed.