Overview
The Micropage CLI is a Node.js tool for creating projects, editing .page files locally, syncing with the cloud, and publishing to Cloudflare Pages.
Install: see CLI setup.
Run micropage --help or micropage <command> --help for the latest flags in your installed version.
Requirements
Commands that touch a project expect you to run them from a local project directory that contains a .micropage folder (created by micropage projects create or micropage projects fetch).
Relationship to the web app
The CLI and web app use the same projects and builds. You can mix both—for example, edit in the browser and run micropage projects pull locally, or push from the CLI and review form submissions in the app.
Command groups
| Topic | Description |
|---|---|
| Authentication | login, logout, whoami |
| Projects | List, show, create, fetch, pull, delete |
| Builds & publish | Drafts, publish, build history, download |
| Files | List uploaded files and get URLs |
| Submissions | List, show, and export form data |
| Links | Open live site, copy URL, pricing page |
Command reference
| Command | Description |
|---|---|
micropage login | Authenticate via the browser |
micropage logout | Clear the stored session |
micropage whoami | Show the logged-in user and subscription |
micropage projects list | List your projects |
micropage projects show [idOrDomain] | Show project details and latest build |
micropage projects create <name> | Create a project and init local folder |
micropage projects fetch <idOrDomain> | Fetch an existing project, init locally |
micropage projects pull | Pull latest build content → local landing.page |
micropage projects delete | Delete project (remote + local .micropage/) |
micropage builds list | List builds for the current project |
micropage builds redeploy [version] | Set active build and republish |
micropage builds download [version] | Download a build archive (zip) |
micropage push | Merge local .page files into a draft build |
micropage publish | Push local content and deploy |
micropage preview | Open the live site in the browser |
micropage copy-link | Copy the live URL to the clipboard |
micropage open-pricing | Open the pricing page in the browser |
micropage files list | List uploaded project files |
micropage files url <filename> | Get the URL for an uploaded file |
micropage submissions list | List form submissions |
micropage submissions show <id> | Show one submission in detail |
micropage submissions export | Export submissions to CSV or JSON |