The project folder
A project is any directory containing .t4/config.json, found by walking up from the working directory, the way git finds .git. The tool is generic; the configuration, the pulled source and the site mirror belong to the project.
your-project/ .t4/ config.json environments and settings: local, not committed tokens/ API tokens, or a pointer to the Keychain: never committed rewrites.conf serve-time URL rewrites t4-source/ <env>/ _manifest.json file -> endpoint/id/field/hash, needed by push _raw/ every API response verbatim _backup/<stamp>/ pre-push snapshots pageLayout/ name.header.html, .footer.html, .stylesheet.css (.hbs for Handlebars layouts) contentLayout/ the markup each content type renders: .html, .hbs for Handlebars, .js for Programmable Layouts media/ Media Library CSS, JS and other text files contenttype/ navigation/ list/ channel/ site-mirror/<host>/ published site overrides/ shadows the mirror when servingLayout files take the extension of what T4 says the layout is written in: .html for T4 tags, .hbs for Handlebars, .js for Programmable Layouts. A pull by an earlier version named every content layout .html; the next pull renames those files to match, keeping any local edits, and lists what it renamed. Pull every environment once after updating, so promote and drift compare files under the same names.
t4 init writes a .gitignore block covering tokens, raw responses, backups and the mirror. Only t4-source/ is meant to be committed; see What the repository tracks.
t4-source and each t4-source/<env> must be real folders, not symlinks (or, on Windows, junctions). The source is committed, so a link there would let a commit point pulls, t4 serve and t4 push at files outside the project, .t4/tokens included. t4 refuses to work through one and says which; replace the link with the folder it points to. For the same reason it will not write through a link at _raw, _backup or any pulled file.
All settings are described in Settings.
An independent, unofficial tool. Not produced, endorsed or supported by TERMINALFOUR Solutions Ltd, and not TERMINALFOUR software. “T4” and “TERMINALFOUR” are their trademarks, used here only to identify the software this works with. Copyright © 2026 Small Robot Corp. Source available under the PolyForm Shield License 1.0.0.