One-command CLI installer for pages-seo.
Run the installer straight from the live site (no npm publish needed) — pick the runtime you have:
curl -fsSL https://seo.benjaminb.xyz/install/run.sh | bash # Bash / Zsh
curl -fsSL https://seo.benjaminb.xyz/install/run.py | python3 # Python
curl -fsSL https://seo.benjaminb.xyz/install/run.js | node # NodeThat's it. The script will:
- Check that
wrangleris installed (offers to install it for you). - Run
wrangler loginif you're not already logged in to Cloudflare (opens your browser; no token to copy). - Prompt for your project slug, site name, admin email, and password.
- Provision a D1 database and R2 bucket on your Cloudflare account.
- Download the latest
pages-seosource, patchwrangler.toml, and runwrangler pages deploy— uploading both the static assets and the Functions bundle. - Set
SITE_NAMEandSITE_URLas Pages environment variables. - Open your new site's
/adminwith the credentials baked into the URL hash, so the first-run setup card auto-creates your account.
Total time: ~2 minutes including the wrangler login.
Cloudflare's public REST API doesn't currently support uploading a Pages Functions bundle — that's the bit that powers the admin dashboard and the API in this project. The only documented path that supports Functions is wrangler pages deploy, which is a local tool. So this CLI is the honest, working version of "one-click install."
If Cloudflare ever ships a public Functions Direct-Upload API, we can move the whole flow to a browser installer and delete this package.
- Node 20 or newer
- A Cloudflare account (free tier is fine)
- macOS, Linux, or WSL on Windows (PowerShell hasn't been tested)
The installer is idempotent. If something fails partway through, run it again with the same project slug — it'll skip the resources that already exist and pick up from the failed step.
MIT — see LICENCE.