Skip to content

CLI Reference

Based Page works as a standalone CLI tool. No MCP client, no configuration file - just run npx based-page and go.

Quick Start

bash
# Deploy a file
npx based-page deploy --file index.html --slug my-site

# Deploy inline HTML
npx based-page deploy --html '<h1>Hello</h1>' --slug hello

# List all deployments
npx based-page list

# Tear down a deployment
npx based-page teardown --id <id>

Commands

CommandDescription
deployDeploy HTML or a file to a live URL
updateUpdate an existing deployment
listList all active deployments
statusGet status and details for a single deployment
teardownDelete a deployment permanently
loginSign in via browser-based email verification
logoutSign out and clear stored credentials
whoamiShow the currently authenticated user
helpShow help for any command

Authentication

The CLI auto-provisions an agent identity on first deploy - no login required. Deploys just work.

To tie deployments to a permanent account, run:

bash
npx based-page login

Agent deploys made before login are automatically claimed into your account.

For CI/CD, set the BASED_PAGE_API_KEY environment variable instead:

bash
export BASED_PAGE_API_KEY=bp_your_api_key_here
npx based-page deploy --file dist/index.html --slug my-app

Help

bash
npx based-page help
npx based-page help deploy
npx based-page help update

Deploy apps from conversation.