Docs Code and publishing
Publish
Put your code live with one command.
hettie publish
Run it in your site's folder. It builds the site on your computer, uploads only the files that changed, and puts the new version live. Your agent can run it for you.
When it's done you see the version number and the link:
Version 4 is live at https://my-blog.hettie.dev
Options
| Option | What it does |
|---|---|
--message "New footer" | A note saved with this version |
--dry-run | Build and count the files, but don't upload |
--no-build | Use the last build as it is |
--site <name> | Publish to a different site, and link this folder to it |
--json | Machine-readable output for scripts |
What a publish changes
Only the code: the design, layouts and page templates. Posts, pages, images and settings are not touched. See How it works.
Every publish is kept as a version. If something looks wrong, run hettie undo.