Publish
All docsSend your site to a folder, Cloudflare Pages, Netlify or GitHub Pages. Every publish is planned first, and you confirm the plan once.
How publishing works
- Plan
Press Publish in the window, or run
velluma publish plan. The plan lists each step, the exact command it will run, and anything that blocks it, such as a broken link. - Confirm
An online target prints a
confirmtoken with the plan. Running with that token sends exactly what the plan showed, once. A new publish needs a new plan. - Look back
velluma publish historylists every publish with its target, result and number of files.
Velluma never reads, stores or prints a password or token. It uses the sign-in of each service's own tool. Publishing never changes your site's files.
velluma publish targets
shows which targets are ready on this computer:
export Static folder no tool needed cloudflare Cloudflare Pages tool found netlify Netlify tool missing github GitHub Pages tool found
A folder
Copies the site into a folder, ready for any host or a USB stick. It is the only target that keeps everything on your computer.
velluma publish plan --target export --to ~/sites/my-site-out velluma publish run --target export --to ~/sites/my-site-out
Watch outGive a full path with no .. in it, beside your site rather than inside it. The folder must be empty or an earlier Velluma export.
Cloudflare Pages
- Install and sign in to wrangler
npm install --global wrangler wrangler login
- Plan with your project name
velluma publish plan --target cloudflare --project my-site
The plan shows the deploy command it will run,
wrangler pages deploy … --project-name my-site, and ends with aconfirm:line. - Run it
velluma publish run --target cloudflare --confirm TOKEN
Add --branch to publish to a preview branch, and --save on the run to remember the settings for next time.
Netlify
- Install and sign in to the Netlify CLI
npm install --global netlify-cli netlify login
- Plan with your site
velluma publish plan --target netlify --netlify-site my-site
- Run it with the token from the plan.
GitHub Pages
- Have git and a signed-in GitHub account
Install git from your distribution, and sign in, for example with
gh auth login. - Plan with the remote
velluma publish plan --target github --remote origin
- Run it with the token from the plan.
Watch outPublishing to GitHub Pages replaces the gh-pages branch of that repository with the site.
When a plan is blocked
Before anything leaves your computer, Velluma checks the copy it is about to send:
- links and pictures that lead nowhere,
- addresses that point at
localhost, - a missing home page or page title,
- files over the host's size limits.
Each finding names the file and the line. Errors stop an online publish; fix them and plan again. To send it as it is anyway, add --allow-errors to the run. An export to a folder reports the same findings without stopping.