CLI
Initialize, validate, preview, and deploy
The CLI handles the work around your config: initialize a project, validate changes, preview maps, deploy stable style URLs, manage tilesets, and check project status.
pnpm add -D @tileflow/cli@alphaReference
Commands and options
Run tileflow <command> --help for generated terminal help. Paths are resolved from the current working directory.
--forceCreate a starter tileflow.config.ts in the current project.
--manual, --no-browser, --api-key, --api-url, --app-urlAuthorize through the approved dashboard account or store a pre-provisioned API key manually.
No optionsShow the active project, key prefix, API URL, dashboard URL, and scopes.
No optionsRemove the saved local CLI credential.
--config, --tile-base-urlValidate config and generated MapLibre style schema shape.
--config, --out, --tile-base-urlGenerate static styles and sprite assets for CI, inspection, or self-hosting.
--config, --port, --tile-base-urlRun a standalone preview on port 3333 for non-Vite or custom apps.
--config, --manifest, --tileset, --api-url, --api-keyUpload styles to Tileflow and write the local frontend manifest.
--json, --api-url, --api-keyShow registered tilesets, uploaded PMTiles archives, and deployed styles.
--id, --name, --schema, --api-url, --api-keyCreate an isolated project tileset manifest before uploading its PMTiles archive.
<file>, --id, --api-url, --api-keyValidate and upload a PMTiles archive of at most 32 MiB through the API.
Auth
Authorize the CLI from your approved dashboard account
Hosted access is limited to approved accounts. Use tileflow login for the browser device flow, tileflow login --manual for an existing key, and setTILEFLOW_API_KEY in CI.
# Approved accounts can authorize the CLI in the dashboard.
tileflow login
# Or store an existing project key manually.
tileflow login --manual
# CI or headless machines
TILEFLOW_API_KEY=tf_live_... tileflow deploy
# Confirm the saved credential and scopes
tileflow whoamiTilesets
Register data before deploying maps that depend on it
Use the tileset commands when a map needs a PMTiles archive beyond the defaultworld dataset.
export TILEFLOW_API_KEY=tf_live_...
tileflow tileset register --id madrid --name Madrid
tileflow tileset upload ./madrid.pmtiles --id madrid
tileflow status
tileflow deploy --tileset madrid