About 15 minutes
Install SharpWrite Self-host
SharpWrite runs on your own Cloudflare account. A setup script does the work; this page is what you need before and after.
What you need
- Node.js 22 or newer
- Check with node -v. Download it from nodejs.org.
- A Cloudflare account
- Free to create. The Workers Free plan is enough to start.
- R2 switched on
- In the Cloudflare dashboard open R2 and accept the terms. It asks for a payment method; the free tier covers most sites.
- A Resend account
- SharpWrite signs you in with an emailed link, so it needs a way to send email. Create an API key at resend.com.
- Your license key
- From your purchase email. It looks like SW-XXXXX-XXXXX-XXXXX-XXXXX. Lost it? Sign in here and make a new one.
Download
Sign in with the email you bought with, open your license and choose Create download link. The link works for 24 hours, and you can make a new one any time.
Install
Unzip the download, open a terminal in the sharpwrite folder and run:
npm install
npm run setupThe script checks Node.js, logs you in to Cloudflare, asks for your license key and Resend key, creates the database and storage, builds the site, deploys it, and prints its address. Running it again is always safe.
Use your own domain
There is no limit on domains. To put a site on your own domain, in Cloudflare open Workers & Pages, your Worker, Settings, Domains & Routes, then Add a custom domain.
Create your account
Open https://your-site/setup, enter your license key, your email address and a site name. This works once; after that the page closes. Sign-in then works with an emailed link.
Move to a new domain
When a site changes address, just open it on its new address: the next license check lists the new domain. There is no limit on domains, so the old entry can stay, or you can remove it from your license page to tidy the list.
Update
Updates are included for one year from your purchase date. Download the newest bundle from your license page, copy your wrangler.jsonc over the new one (it holds your database id), then run npm install and npm run setup. Your content stays in your database.
If something goes wrong
- “Setup stopped: …”
- Read the message, fix it, and run npm run setup again. It carries on where it stopped.
- “R2 must be switched on”
- Open R2 in the Cloudflare dashboard, accept the terms, then run the setup again.
- Editing is turned off, content still loads
- The license check failed and the banner says why. Your public content and images keep working. Check your license here.
- You changed the key
- Run npm run setup -- --license-key <new key>. It stores the key and redeploys.
Still stuck? Write to hello@sharpwritecms.com.