CLI Options

This page lists the flags and arguments accepted by each MiMo Code CLI command. For full command descriptions see CLI; for environment variables see Environment variables.


tui

mimo [project]
FlagShortDescription
--continue-cContinue the last session
--session-sSession ID to continue
--forkFork the session when continuing (use with --continue or --session)
--promptPrompt to use
--model-mModel to use in the form of provider/model
--agentAgent to use
--portPort to listen on
--hostnameHostname to listen on

attach

mimo attach [url]
FlagShortDescription
--dirWorking directory to start TUI in
--session-sSession ID to continue

github run

mimo github run
FlagDescription
--eventGitHub mock event to run the agent for
--tokenGitHub personal access token

models

mimo models [provider]
FlagDescription
--refreshRefresh the models cache from models.dev
--verboseUse more verbose model output (includes metadata like costs)

run

mimo run [message..]
FlagShortDescription
--commandThe command to run, use message for args
--continue-cContinue the last session
--session-sSession ID to continue
--forkFork the session when continuing (use with --continue or --session)
--shareShare the session
--model-mModel to use in the form of provider/model
--agentAgent to use
--file-fFile(s) to attach to message
--formatFormat: default (formatted) or json (raw JSON events)
--titleTitle for the session (uses truncated prompt if no value provided)
--attachAttach to a running mimocode server (e.g., http://localhost:4096)
--portPort for the local server (defaults to random port)
--dangerously-skip-permissionsAuto-approve permissions that are not explicitly denied (dangerous!)

serve

mimo serve
FlagDescription
--portPort to listen on
--hostnameHostname to listen on
--mdnsEnable mDNS discovery
--corsAdditional browser origin(s) to allow CORS

session list

mimo session list
FlagShortDescription
--max-count-nLimit to N most recent sessions
--formatOutput format: table or json (table)

stats

mimo stats
FlagDescription
--daysShow stats for the last N days (all time)
--toolsNumber of tools to show (all)
--modelsShow model usage breakdown (hidden by default). Pass a number to show top N
--projectFilter by project (all projects, empty string: current project)

web

mimo web
FlagDescription
--portPort to listen on
--hostnameHostname to listen on
--mdnsEnable mDNS discovery
--corsAdditional browser origin(s) to allow CORS

acp

mimo acp
FlagDescription
--cwdWorking directory
--portPort to listen on
--hostnameHostname to listen on

uninstall

mimo uninstall
FlagShortDescription
--keep-config-cKeep configuration files
--keep-data-dKeep session data and snapshots
--dry-runShow what would be removed without removing
--force-fSkip confirmation prompts

upgrade

mimo upgrade [target]
FlagShortDescription
--method-mThe installation method that was used; curl, npm, pnpm, bun, brew

Global Flags

Apply to all commands.

FlagShortDescription
--help-hDisplay help
--version-vPrint version number
--print-logsPrint logs to stderr
--log-levelLog level (DEBUG, INFO, WARN, ERROR)