Skip to main content

Configuration

The CLI keeps a linked app's state in a .mapples/ folder at the app root. There is no other config file.

.mapples/config.json​

Written by create and init. Commit it.

FieldMeaning
projectIdThe Creator project the app is linked to
apiUrlThe Mapples API the CLI talks to (default https://prod-us.mapples.org)
routesDirWhere route files live: src/app for an app from create
pagesDirScreens outside the navigation: <mapplesDir>/pages
componentsDirSaved components: <mapplesDir>/components
mapplesDirEverything else the CLI writes: src/mapples next to src/app, else mapples
backendThe data backend chosen at link time: supabase, firebase, neon, postman, openapi or none
schemaThe config schema version

The key​

.mapples/secret holds the project API key and is git-ignored. The MAPPLES_SECRET environment variable overrides it, which is how a coding agent's MCP entry reads the key. Never put the key in config.json.

The other state files​

FileMeaning
headThe last synced head of the project
pages.json, components.jsonWhich file each page and component maps to
base/The canonical JSON of every synced entity at the last head, the base for three-way merges
outbox/Transactions parked while offline, drained on the next run
packages.jsonThe optional packages the CLI added for the project
cli.jsonThe CLI version and command list the agent bundle was installed with
agent.jsonThe agent-session lease held by this checkout; git-ignored, present during a run
selection.pngThe last screenshot from mapples selected --screenshot

Keep head, base/ and pages.json: without them the next sync is a cold bootstrap of the whole project.

Environment variables​

VariablePurpose
MAPPLES_SECRETThe project API key, instead of .mapples/secret
MAPPLES_ENVdev, staging or prod: which Creator stage to talk to when config.json has no apiUrl

Precedence for the API endpoint: --api-url on the command line, then config.json, then MAPPLES_ENV, then production.

Git​

create writes a .gitignore with Expo's entries plus .mapples/secret, .mapples/agent.json and .mapples/outbox/. init adds the same entries to an existing one.