Typical CLI flows
Launch a scenario and test it (agent / CI)
Section titled “Launch a scenario and test it (agent / CI)”microlab start "Order checkout" --json # starts Docker if needed and waits healthymicrolab status --json # effective URLs of each micro# ... test HTTP calls against those URLs ...microlab stopmicrolab daemon stopstart already starts Docker on its own. If your CI brings it up externally, add
--no-docker.
Define a mock and verify it
Section titled “Define a mock and verify it”microlab mock operations catalog-coremicrolab mock skeleton catalog-core GET /catalog/api/v1/scopes > body.jsonmicrolab mock save catalog-core --data '{"method":"GET","pathPrefix":"/catalog/api/v1/scopes","active":0,"variants":[{"label":"200","status":200,"jsonBody":[]}]}'microlab mock probe GET /catalog/api/v1/scopesShare a scenario
Section titled “Share a scenario”microlab scenario export "Order checkout" --include-run# (send the .microlab.yml) ... and on the other machine:microlab scenario import order-checkout.microlab.yml # see planmicrolab scenario import order-checkout.microlab.yml --apply --mocks unionDebug a failing micro
Section titled “Debug a failing micro”microlab statusmicrolab logs orders-core -n 500microlab logs --errorsmicrolab restart orders-coremicrolab logs orders-core -f