Announce the sitemap from the terminal

One command re-announces the sitemap on demand — with a dry run that lists the URLs and pings nothing, and a force flag for when the set hasn't changed.

What it is

A standalone endpoint and a matching Node script. The endpoint announces the current site state, optionally forced, optionally as a dry run that just returns the URL set. The script reads the cron secret from the local environment file and can target production or a local dev server.

Also called: manual sitemap ping · re-announce site · sitemap-sync script

See it
Announce the sitemap from the terminal
CustomerBuildingAmountStatus
Delia YoderRiding Arena$9,370Draft
Delia YoderBarndominium$2,340Open
Marlin HooverHobby Shop$11,650Sent
Delia YoderRiding Arena$2,530Draft
Marlin HooverRiding Arena$6,330Sent
Terminal output of a dry run listing the live URL set with its count. Sample data — no customer information appears here.
How it works
  1. 1GET /api/cron/sitemap-sync announces if the URL set changed.
  2. 2?force=1 announces regardless; ?dry=1 returns the URL set and pings nothing.
  3. 3node scripts/sitemap-sync.mjs runs it against production; --dry, --force and --local mirror the flags.
  4. 4Unknown flags are rejected with the known list rather than silently ignored.
Why we built it

The route explains why it is separate from the daily sweep: "The daily sweep already does this, but it is bundled with rank checks that cost real money per keyword, so 'just re-announce the sitemap' was not something anyone could actually trigger." And the script names the case it covers: "publishing through the panel announces automatically, but a post that reaches the database another way (a script, a hand-edited row) used to go live with nobody told. This is the manual lever for that case."

The problem
  • Re-announcing was bundled with paid rank checks.
  • Content that reached the database outside the panel was never announced.
Sound familiar?
What you get
Safe to run as often as you like — unchanged is a no-op
A dry run shows exactly what would be submitted
Works against production or a local dev server

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →