From zero to Cloudflare in three commands
This guide shows how three commands give you a live website with an admin, Chinese and English content and a complete SEO setup, running on Cloudflare Pages with D1 as the database and R2 for files.
1. Generate the site
npx -y https://insightme.top/create-nuxtcms.tgz my-site
Pick a template when asked (company, blog, docs and more) or pass one directly, for example --template blog. The project comes with dependencies, config, styles, languages and local secrets ready.
2. Refine it locally
cd my-site && pnpm i && pnpm dev
Open http://localhost:3000/zh/setup to create the admin account and, if you like, import demo content. Then write posts, build pages and install plugins while previewing the site.
3. Deploy
pnpm deploy:init && pnpm deploy:migrate
The script creates a D1 database, an R2 bucket and a Pages project in your Cloudflare account, writes the settings back into the project, migrates the database, builds and publishes. You get a *.pages.dev address; add your own domain in the Cloudflare dashboard.
Not on Cloudflare?
The same code runs on Baota / Nginx, Docker, Alibaba Cloud, Tencent Cloud, Vercel, Netlify and more, with SQLite, PostgreSQL or MySQL. See the deployment docs.
Related articles
InsightSite 1.30–1.31: backups to object storage, multi-user with password reset, fleet checks
The latest release adds three practical things: send site backups straight to R2 / S3 / Alibaba OSS / Tencent COS, run the admin with several administrators and e-mail password reset, and check the health and AI-search readiness of every site in one command.
InsightSite 1.7–1.9: a safer admin, configurable bot protection and scheduling without cron
The last few releases focused on three things: a hardened admin, a choice of human check for every form, and scheduled content that goes live even on sites without a cron job.
Choosing a human check for your forms: built-in captcha, Turnstile or reCAPTCHA
Admin login, contact forms, comments and checkout all need protection from bots. The three options suit different sites; here is how to pick and configure one.