Build it locally, then push the structure up
Sync deploys schemas, templates and collection settings between a local Total CMS install and a production one. Your editors' content stays exactly where they left it.
Sync is a mirror with a direction: it moves custom schemas, templates and every collection's settings between a local install and a production server, so you build and test on your laptop and deploy structural changes without touching live content or media.
Setup, once per pair of sites
- On production. Create an API key under Utilities → API Keys with GET and POST permissions and the Sync Manager endpoint ticked.
- Locally. Enter that server's API URL and the key under Settings → Sync Data.
tcms push,tcms pulland Utilities → Sync Manager all read it.
What travels
- A bare push is a full mirror. Every custom schema, every template, every object in the five feature-flagged collections, and every collection's settings.
- Filters are exclusive. Name one and everything else is excluded:
tcms push --schemas=blogpushes the blog schema and nothing else. - Your own objects stay put. They travel only when named with
push --objects, which seeds rather than mirrors: an object the target already has by that id is left untouched. - Never, by design. Media files and images, and any image, gallery, file or depot field on any object. System settings, API keys and reserved (built-in) schemas.
Dry run first, every time
- Every item is marked.
--dry-runcompares both sides:~differs,+is new on the remote,=is identical, and·exists only on the remote and is left alone. - It knows which side is newer. The
updatedtimestamps hint at which side holds the newer edit, and it warns explicitly when a sync would land an older copy on top of a newer one. - The everyday case. You add a
priceproperty to a products schema, rework the product template and dry-run against production. Two items differ, so you push those two; the products your client edited last week are untouched, because objects in a custom collection are not part of a push at all.
In practice
What it looks like on the command line
# Preview what a push would change — never sends anything
tcms push --dry-run
# Push one schema and one template; nothing else travels
tcms push --schemas=products --templates=product-detail
# Seed starter posts onto a fresh production site (existing ids are skipped)
tcms push --objects=blog
# Pull a schema back down from production
tcms pull --schemas=products
Filters are exclusive: the moment you name one, every category you did not mention is left out of the payload.
At a glance
What you get
- Dry run before you deploy
- Both push and pull support --dry-run, which compares the two sides and shows what would actually change rather than what would travel. It warns when a sync would overwrite the newer copy.
- Structure moves, content stays
- Schemas, templates and collection settings mirror. Media, system settings, API keys and reserved schemas never sync at all.
- Seeding, not clobbering
- push --objects=blog lands starter content on a fresh production site but skips any id the target already has. Overwriting requires both --overwrite and --force.
- Automatic backups on the receiving side
- Before an overwrite replaces a schema, object or collection, the receiving instance snapshots the current version under tcms-data/.system/backups/. The ten most recent are kept per item.
- Dashboard or command line
- Utilities → Sync Manager shows the same comparison as the CLI dry run, with a Select Changed button that ticks exactly the items that differ or are missing on the remote.
Push & pull sync
Common questions
Does a push overwrite my client's content?
No. Objects in your own collections are not part of a push unless you name them with --objects, and that mode skips any object the target already has. The five site-machinery collections — pages, data views, mailer, MCP prompts and automations — do mirror, so push with those in mind if they are edited in production.
What if production has the newer version?
The dry run tells you. Items that differ are compared by content hash, and the updated timestamps say which side holds the later edit; the preview warns explicitly before a sync lands an older copy on top of a newer one. Pull it down first, then push.
Can I use git instead?
Yes. Schemas live in tcms-data/.schemas/ and templates in tcms-data/builder/, both plain text that diffs cleanly, so a git-based pipeline works well — run tcms cache:clear on production after deploying. Sync exists for the case where you have no file access to the server, and the two happily coexist.
Is anything recoverable if a sync goes wrong?
The receiving instance snapshots each schema, object and collection it is about to overwrite into tcms-data/.system/backups/, keeping the ten most recent per item. Restoring is a manual copy back over the live file followed by a cache clear — it is a safety net, not a substitute for real backups.
Try it on a site of your own.
45 days, every Pro feature, no credit card. Build it, hand it to a client, and see what they can and can’t touch.