CLI
Command-line tool for scaffolding and upgrading PageZERO projects. Initialize new projects with a single command or upgrade existing ones to the latest version.
Usage
bunx pagezero@latest <command>Commands
Section titled “Commands”Initialize a new PageZERO project:
bunx pagezero@latest initWhat it does:
- Prompts for your project name
- Clones the PageZERO repository
- Installs dependencies (
bun install) - Runs the setup script (
bun run setup) - Updates
wrangler.jsonwith your project name - Initializes a fresh git repository with an initial commit
After completion, you’ll have a ready-to-run project:
cd <your-project-name>bun devupgrade
Section titled “upgrade”Upgrade an existing PageZERO project to the latest version of PageZERO:
bunx pagezero@latest upgradeRequirements:
- Must be run from within a PageZERO project directory (requires
wrangler.json) - Requires
rsyncto be installed on your system
How it works:
- Downloads the latest PageZERO stack
- Copies new files to your project (excluding
.git) - Cleans up temporary files