MAP Docs
MEAL

CLI

`map invoke MEAL` recipes for every operation.

The CLI is a Rust binary at services/map-cli. After map login you can dispatch any operation on MEAL 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

meter

map invoke MEAL meter --input '{"dim":"tokens","amount":1024}'

Record a metered event (tokens, seconds, watts) against caller account.

Capability: map.meal.meter

statement

map invoke MEAL statement --input '{"example":true}'

Generate a statement for an account over a period.

Capability: map.meal.statement

reconcile

map invoke MEAL reconcile --input '{"example":true}'

Reconcile metered events against settled payments; reports unbalances.

Capability: map.meal.reconcile

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

On this page