FeaturesData & Portability

Content you can open in a text editor

Every object is a file on disk. There is no database to provision, secure, back up or keep in sync with your uploads — a backup is a copy of a folder.

Standard Included in Standard and Pro

What Is a Flat-File CMS? (And When You Shouldn't Use One)
What Is a Flat-File CMS? (And When You Shouldn't Use One)

All Total CMS data lives in a folder: tcms-data in the document root by default, and configurable elsewhere. A blog post is literally tcms-data/blog/hello-total-cms.json; open it in your editor, diff it, commit it, script against it. (Still choosing a flat-file CMS? Our guide compares five, including the ones we would pick over our own.)

What is in the folder

  • One folder per collection. Inside it, one JSON file per object, named after its id.
  • .meta.json. The collection's settings: name, description, the schema it conforms to, the URL its objects live at, and any form-label overrides.
  • .index.json. A summary of every object, holding only the properties the schema names in its index array, so listing a collection never has to open every file.
  • Assets beside the object. In a folder named for the object, then for the property: a gallery image on a post is at my-blog-post/gallery/image.jpg. Delete the object folder and its uploads go with it.
  • Schemas, as JSON Schema. Those that ship with Total CMS live with the source; your own custom schemas live in tcms-data/.schemas/.
  • .system, which belongs in every backup. tcms-data/.system/ holds the installation's operational state: settings, extension permissions, OAuth signing keys, and site.key, the encryption secret that anything encrypted on this site can only be decrypted with. It is part of the deployment's identity.

Markdown instead of JSON

JSON is the default, not the only option:

  • A storage format of markdown. Each object is stored as {id}.md: YAML frontmatter for every property, plus a body taken from the schema's content property.
  • For content edited as text. It suits content people would rather edit in a text editor or a git repository than through a form: documentation sites, markdown-first blogs.
  • Fixed at creation. tcms collection:convert is the only thing that changes the setting and the files together, and it is safe to interrupt and re-run.

Editing files by hand

  • Supported, with one rule. A hand-edited file is invisible until the index is rebuilt: edit, commit, deploy, then run tcms repair:index {collection}.
  • A bad file is named, not fatal. A file that will not parse is skipped and named rather than failing the whole build.
  • Everything above the repository. The REST API, MCP, Twig, sync, JumpStart, exports and the admin read through the same layer and never need to know which format a collection uses.

In practice

What it looks like on the command line

shell
# One object, one file — read it, diff it, commit it
cat tcms-data/blog/hello-total-cms.json

# Store a collection as markdown instead of JSON
tcms collection:convert docs --to=markdown --dry-run
tcms collection:convert docs --to=markdown

# Make hand-edited files visible to the CMS
tcms repair:index docs

The storage format is a collection setting, and the CLI converts an existing collection in place.

At a glance

What you get

One folder per collection
Objects are named JSON files, and each object's uploads live in a folder beside it, grouped by property. Moving a site is moving a directory.
Indexed for fast reads
A collection's .index.json summarises every object using the properties the schema lists in its index array, so listings never open every file.
Markdown when a document suits better
A collection can store objects as .md files — YAML frontmatter plus a body from the content property. Perfect for docs sites kept in git.
Hand edits are a workflow
Edit files in your editor, commit, deploy, then run tcms repair:index. Unparseable files are skipped and named rather than breaking the collection.
Back up .system
tcms-data/.system holds settings, extension state, OAuth keys and site.key — the secret your encrypted values depend on. It belongs in every backup.

Flat-file storage

Common questions

Is there really no database?

None. Every object, schema and collection setting is a file on disk. There is nothing to provision, tune, secure or keep consistent with your uploads.

Can I edit the files by hand?

Yes, and it is a documented workflow: edit, commit, deploy, then run tcms repair:index for that collection. Bear in mind that a file edited outside Total CMS bypasses schema validation entirely.

What has to be in a backup?

The whole tcms-data directory, including the hidden .system folder. It holds settings, extension state, OAuth signing keys and site.key, without which encrypted values on that site cannot be decrypted.

Can I switch a collection from JSON to markdown later?

Yes, with tcms collection:convert. The format cannot be changed by editing the setting — the command flips the setting and rewrites the files together, and is safe to interrupt and re-run.

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.