Update a LitPage Landing Page with Codex
Ask Codex to pull and update a known LitPage landing page, pause at the draft, and verify the published revision after review.
This workflow uses Codex in a local project folder to update a specific published landing page. You will give Codex the address, IDs, and editor's brief, then review its draft before authorizing publication. Choose a test site and a page you can safely update.
Give the session access to the CLI
Open the project in a local Codex session with Node.js, npm, npx, and LITPAGE_WORKSPACE_KEY available in its environment. Ask Codex to run npx @litpage/cli --version and npx @litpage/cli doctor and report the version, setup status and intended site. Use the session's normal approval flow if npm needs to fetch the package or the CLI needs to contact LitPage. CLI setup · Codex approvals
Ask for a draft
Provide the target subdomain and page path, a local working directory, and a precise change. Choose the page in the site's Landing pages list. In an editor URL ending in /content/landing/PAGE_ID, copy the last UUID. A prompt can say:
On my test site SITE_ID, run
npx @litpage/cli page pull --site-id SITE_ID --id PAGE_ID --out current.page.yaml. Create edited.page.yaml with the heading “Workshop field guide” and a matching search description. Keep the page identity, version fields, and other sections. Show the diff, then runnpx @litpage/cli page save --file edited.page.yaml --out saved.page.yamland report the draft revision. Stop before publishing.
The expected flow is npx @litpage/cli page pull, a local edit, and npx @litpage/cli page save. Review the diff and open the draft in Builder. Confirm the public page still shows its old content. For repeat work, a project AGENTS.md can record the expected files, review process, and release receipts. Keep keys in your environment. Codex project instructions
Review and publish
After you approve the draft, ask Codex to run npx @litpage/cli page publish --file saved.page.yaml --out published.page.yaml with CLI 0.7.0. The CLI records the operation ID and checks public delivery. Ask it to run npx @litpage/cli page verify --file published.page.yaml and report the public URL and revision. Open the URL to confirm the edit. On conflict, have the session pull the latest page and show the changes before retrying. See update a published landing page.