CLI Reference
The mima CLI is installed with the Python SDK:
Or run via Python:
Authentication
mima login
Store your API key and workspace credentials locally.
Prompts for your API key, then resolves and stores your workspace ID.
Credentials are written to ~/.mima/config.json with owner-only permissions (0600).
Evidence
mima push
Push a GRC evidence record from the command line. Pass the record type as the first positional argument, then supply fields as named flags.
Pipe JSON for scripted use:
Add --dry-run to preview controls without writing:
Common flags
Environment variable: MIMA_BASE_URL
Used by mima push and mima gates. Set when pointing at a self-hosted
deployment:
Gates
mima gates
Check whether required evidence gates pass for a system.
Outputs a table of gate name, pass/fail status, and blocking status.
Exits with code 0 if all gates pass, 1 if any soft gates fail, 2 if any hard gates fail.
Use in CI to block deploys when gates fail:
Options
Controls
mima derive-controls
Get recommended evidence record types for a system description.
Returns a list of recommended record types and the controls they earn.
Options
Environment variable: MIMA_API_URL
Used by mima derive-controls. Defaults to https://api.mima.ai/api.
Status
mima status
Show your current posture score and top open gaps.
Configuration file
Stored at ~/.mima/config.json. Do not edit manually — use mima login.
Permissions are set to 0600 (owner read/write only). The API key is
never written to .env files or environment exports by mima login.
