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:
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 from-commit [sha]
Queue a build of a GitHub commit on Minitap’s build infrastructure without running any test. Omit the SHA to build the head of the default branch. Needs the GitHub integration.
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.
minitest run from-commit <sha>
Build a GitHub commit and run the suite against it in one step. Needs the GitHub integration.
Native cloud device type (pending)
Coming soon. These flags are part of the pending native cloud tablet contract, not a deployed feature. Tablet execution requires
native-tablets, off by default.
Both flags are optional on
minitest run start <user-story>, minitest run start --tag <tag>, minitest run all, and minitest run from-commit <sha>. Omitting a flag leaves deviceType out of the request and preserves phone execution. Each platform accepts one form factor per run.
For start and all, supply the corresponding --ios-build or --android-build. For from-commit, select the native lane with --platform; its existing default is iOS and Android. A device-type flag does not select a lane by itself and is rejected if its lane is not selected.
These flags do not change web defaults or browser/viewport targets. See the target restrictions before choosing a device type.
minitest run verdicts <run-id>
The verdict of every story and criterion in a run, as JSON. Use it to decide whether a release goes out.
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.
issues
minitest issues list
Open issues as JSON, each with its fix prompt, the build it was found on, and a link to it in the dashboard. Hand the output to a coding agent to fix them.
minitest issues fix <issue-id>...
Mark one or more issues as fixed. Prints one result per ID.
env
The app’s environment variables, as set in Test Configuration.capabilities
minitest capabilities
Print what Mini can and can’t do, the same list as What Mini can and can’t do.
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.
