Documentation › Set up (developers)
Quickstart: Galley on your site
Open your site in Galley with one command, change a page, check it in Proof and publish it. About ten minutes.
Start here if you look after a site whose pages are files in a git repository. Astro sites fit best; these frameworks are recognised too. In ten minutes you'll change a page, check the change, and publish it to the site's own repository.
No site yet? Create a new site instead.
Link to this section: What you need
- A site in a git repository.
- Node.js 20.11 or newer — and whatever your site needs (Astro 7 needs 22.23.4) — and git.
- Optional: an Anthropic API key, for the assistant.
Galley adds nothing to your site: no dependency, no integration, no build step.
Link to this section: Open your site
In your site's folder, run:
npx galley-cmsGalley is running at http://127.0.0.1:4400
…
Open: http://127.0.0.1:4400/sites/…?token=…Your browser opens on the site. Galley runs on your computer only, until you press Ctrl+C.
Link to this section: Change a page
- Open Pages in the sidebar and choose a page.
- Change it any of three ways: type in the form on the left, choose Click to edit and retype words on the page, or ask the assistant on the right.
- The change is saved as you type. Nothing is live yet.
Link to this section: Check it
Press Proof in the top bar. Each change is listed in the site's own words — the old words struck through, the new ones written in. Put back undoes one.
Link to this section: Publish it
Press Publish, then Publish 1 change. Galley commits the changed file as you, and pushes when the repository has a remote. To see the commit:
git log -1 --stat…
Update Caddow — coats and knitwear, made in runs of forty
…
src/content/pages/index.md | 2 +-Undoing a publish later is a new commit, never a rewrite.
Link to this section: If something's different
- npx asks to install
galley-cms. That happens the first time; answer y. - Galley says the folder doesn't look like a site. Run it in the folder with
package.jsonin it. - Port 4400 is taken. Galley uses the next free one and says so.
- The preview stays blank. Your site's own dev command (
npm run dev) must work first;npx galley-cms doctorshows what Galley finds. - Other pages write the command as
galley. Typenpx galley-cmsin its place.
Link to this section: Next
- How Galley reads an Astro site — and what it can't read.
- Connect the assistant.
- Hand the site to an editor.
Changing Galley itself? Running it from a clone is in CONTRIBUTING.md.