MAP Docs
MOON

CLI

`map invoke MOON` recipes for every operation.

The CLI is a Rust binary at services/map-cli. After map login you can dispatch any operation on MOON from the shell.

Common flags

FlagEffect
--input <json>Operation payload (or read from stdin)
--version v1.0.0Pin a specific protocol version
--idempotency-key <k>Required for safe retries of state-changing ops
--audit-tailPrint the audit record(s) produced
--output humanPretty-print response (default: json)

Recipes

submit_manifest

map invoke MOON submit_manifest --input '{"example":true}'

Submit a workflow manifest; journaled from the first instruction.

Capability: map.moon.submit_manifest

execute_workflow

map invoke MOON execute_workflow --input '{"example":true}'

Dispatch a durable workflow with replayable journal.

Capability: map.moon.execute_workflow

workflow_status

map invoke MOON workflow_status --input '{"example":true}'

Query the status of a running or completed workflow.

Capability: map.moon.workflow_status

agent_deployment_status

map invoke MOON agent_deployment_status --input '{"example":true}'

Query the deployment status of an agent worker.

Capability: map.moon.agent_deployment_status

scale_deployment

map invoke MOON scale_deployment --input '{"example":true}'

Scale a deployment up or down under capability scope.

Capability: map.moon.scale_deployment

update_manifest

map invoke MOON update_manifest --input '{"example":true}'

Update a workflow manifest; versioned with diff against prior.

Capability: map.moon.update_manifest

See CLI reference for global flags, login, MCP integration.

On this page