mapx command-line client.
Third-party platforms (WorkBuddy, local LLM tool loops, automation scripts) can
run the single binary to control projects, upload data, change map styles, and
save reports without embedding the product UI.
The API calls each project a session internally; the CLI command names (such
as mapx session create) keep that technical name.
Install and configure
Download the binary for your platform from OSS (thelatest alias points to
the newest release).
Unix (Linux/macOS):
--api-key and --url overrides. The key is scoped to
your account, and project ownership is enforced by the backend.
Typical workflow
mapx session create --title "analysis"(ormapx session list) to get asession_id(the project id).mapx view live --session <id>— open the live map as soon as the project exists. The command returns alive_view_url(an SSE-synced live view). If the agent platform can render web pages, load that URL in the agent UI so the user can watch the map update in real time (for example, WorkBuddy). If the agent cannot render web pages, usemapx view live --session <id> --opento open the live map in the user’s default browser instead.mapx upload ./data.geojson --session <id>— upload local data directly. The command accepts only GeoJSON (vector) and GeoTIFF (raster) files. For CSV/Excel sources, identify the latitude/longitude columns, convert the data to GeoJSON, then upload the resulting.geojsonfile.mapx layers list --session <id>thenmapx layers get <layer_id> --session <id>to inspect geometry, fields, and the current style.mapx layers style <layer_id> --session <id> --file style.json— apply incremental style changes.mapx report save ./report.html --session <id>— save an HTML report.
Command reference
--json for machine-readable output.
Output contract
With--json, stdout contains a single JSON object
({"ok":true,...} or {"ok":false,"error":"..."}); progress goes to stderr.
Exit codes: 0 success, 1 business failure, 2 usage error.
Skills
Before complex tasks, print the command manual withmapx skill. The full
skill index is stored in source/skills.json. See
Skills.
