Commands by group
All commands accept --json and -p <path>. Add -h to any of them for its full help.
Scenario status and lifecycle
Section titled “Scenario status and lifecycle”microlab status # live engine, Docker, active scenario and microsmicrolab doctor [scenario] # environment check before launchingmicrolab start <scenario> [flags] # starts (launches daemon if needed) and waits healthymicrolab stop # stops the active scenariomicrolab restart <micro> # restarts a single micromicrolab metrics [micro] # last metrics sample (--json = history)microlab set-resolution <dep> <local|dev|mock> # changes the resolution hotmicrolab cleanup [scenario] # defensive cleanup (orphans, ports)microlab prep <scenario> --when <pre-boot|post-migrate>microlab logs [micro] [-f] [-n N] [--errors] [-g pattern]microlab call <micro> [path] [-X method] [-d body] [-H k=v...]microlab diagnose <micro> [-n N] # what's wrong with a micro, in one shotFlags for start: -r/--resolve <dep=mode> (one-off resolution override),
-m/--mode <micro=mode> (native|container), --no-wait, --no-docker,
--timeout <s> (default 600). start starts Docker on its own unless --no-docker.
Scenarios
Section titled “Scenarios”microlab scenario list | show <n> | graph <n> | save --file <yml> | delete <n>microlab scenario export <n> [-o file] [--include-run]microlab scenario import <file> [--apply] [policies]Micros
Section titled “Micros”microlab service list | show <id> | add <repo-path> | save --file <yml> | delete <id>microlab service export <id> [--include-run] | import <yml...>microlab service drift <id> # does the manifest diverge from the repo? (exit 1 if drift)microlab service rescan <id> # reconciles from the repo (preserves curation)Databases
Section titled “Databases”microlab db list | save --file <yml> | delete <id>microlab db test <host> <port> # TCP reachability (exit 1 if no response)microlab mock services | catalog [service] | calls | events | clear-callsmicrolab mock save <service> --file <json> | delete <service> --method GET --path /xmicrolab mock set-active <service> --method GET --path /x --variant 1microlab mock enable|disable <service> --method GET --path /xmicrolab mock operations <service> | skeleton <service> <method> <path>microlab mock from-call <method> <path> | probe <method> <path>microlab mock export|import <service> [file] | export-all|import-all [file]Custom startup
Section titled “Custom startup”microlab run show <id> | set <id> [options] | clear <id> | preview <id>microlab run export <id> [-o file] | import <id> <file>run set accepts --profile, --prop k=v, --toggle <id>, --extra-args,
--command, --datasource-ref <id>, --datasource local|dev|custom [--url ...].
Settings
Section titled “Settings”microlab config show | get <key> | set <key> <value> | unset <key>Keys: workspace, composeFile (bundled or path), mockPort, credentials.<name>.
Docker, catalog bundle and daemon
Section titled “Docker, catalog bundle and daemon”microlab docker status | start [--no-wait] [--timeout <s>]microlab containers | docker-clean | infra <n> | infra-up <n> | infra-downmicrolab bundle export [-o file] | import <file> [--overwrite]microlab daemon start | stop | statusDiagnostics, consent and self-discovery
Section titled “Diagnostics, consent and self-discovery”microlab telemetry info | on | off | test [--note <text>]microlab consent info | historymicrolab ops [--json] # the engine's complete surfacemicrolab mcp # starts the MCP server over stdio