CampusNew study spaces open in the libraryPull · Edit · Push
Edit your Terminal Four site on your own computer.
DepartureGate brings a T4 site's templates down as files, runs the published site locally with your edits applied, and sends the changes back when you are ready. Save a file and the page refreshes. No publish cycle.
A desktop app for Windows and Mac, and a command-line tool for any computer with Python 3.11. Free to use, with DepartureGate Pro for more: try it free for 30 days.
Visual Inspector Click any part of a page to see the content item, content layout and page layout behind it, and open each one in your editor.
Work Offline Once the site is copied down, you edit and preview from disk, with no VPN or CMS. Connect again only to pull and push.
Multiple Environments Keep production, staging and test side by side. Each is read-only until you turn on pushing for it.
Easy Install Download the app for Mac or Windows and open it. It brings its own Python, so there is nothing else to set up.
The real site, running on your machine
Templates live in the CMS and finished pages on the published site. DepartureGate puts both on your computer: t4 pull brings the templates down, andt4 serve shows the published pages with your edits applied, at127.0.0.1:8321.
Your stylesheets and scripts are Media Library items, so the file you edit is the file the site serves and the file a push deploys. Images you did not copy are fetched from the live site as they are needed.
The local siteInspect anything to find the file behind it
Every page served locally carries a T4 panel in the corner. Click a banner, a news card or the footer, and it names the content item, its content layout and the page layout around it, each with a button to open the file in your editor. Try it on the page below.
- Select on click. Links stop navigating while it is on, so clicking a menu item tells you about it instead of taking you away.
- Highlight content items.Pro Outline every item on the page, coloured by content type, to see how a page is put together at a glance.
- The right layout, not a guess. It reads the ids T4 publishes into each page, so on a site with fifty-odd layouts you are not left wondering which
basic_pageit was.

Applications for fall 2027 are open
Find your place at Example University
Explore programsNews
CampusNew study spaces open in the library
CommencementThe class of 2026 crosses the stage
Campus lifeFive autumn walks across campusComing up
Click any part of the page, or tab to it and press Enter. The panel shows the files behind it; in the real thing, edit opens the file in your editor.
Photos: Campus building in autumn by Tony Webster (CC BY 2.0, cropped); Students studying in a library by Gary Todd (CC0); Graduation caps by McElspeth (CC0); Campus path in autumn by Rmjelley (CC BY 3.0), via Wikimedia Commons. Example University is invented.
See a layout change before you publish itPro
Nothing outside T4 can run T4 tags. But the published page is what those tags produced, so DepartureGate lines your edited layout up against it and reuses each tag's output. Wrap a tag in a div, change a class or reorder markup, and reload.
Where it cannot be faithful, it leaves the page as published and says why in a comment. A preview that quietly differs from what T4 will publish is worse than none.
Layout previews$ t4 preview
index.html
layout standard #1180
edited pageLayout/standard.footer.html
--- published
+++ with local edits
-<!-- n:Footer-Contact (273) -->
+<div class="footer-contact-bar"><!-- n:Footer-Contact (273) -->Push with a diff in front of you
A push offers only the files that differ, shows each change and asks before sending it. It knows who moved: if a record changed in the CMS since your pull, it stops instead of quietly putting the old version back.
Right before each write it reads the record again, and afterwards it checks the change landed. Every record is backed up first. With git on, the commit message names the T4 record behind each file, and a push can require that commit.
Pulling and pushingWrite tags without the reference open
The tag builder knows each tag type's attributes from T4's tag reference, and your element names from the project's own content types. It gives you the T4 tag and the Handlebars equivalent, and says when something you picked does not apply.
With Pro, fill a content layout with sample data, chosen by each element's type, to see the markup nest and the CSS apply before anyone has entered content.
The tag builderEverything you need for front-end work on T4
The same features in the desktop app, in t4 app in your browser, and on the command line. Every button in the app runs the real command, so they cannot disagree. Items marked Pro need a DepartureGate Pro licence.
Pull and push
Page layouts, content layouts, content types, navigation, lists and Media Library files, as plain files.
A local copy of the site
The published pages crawled once, then served from disk with your edits applied.
Refresh on save
Edit in any editor. The browser reloads by itself.
The inspector
Click part of a page to see the content item, content layout and page layout behind it.
Layout previewsPro
Edits to a page or content layout show on the local site without a publish.
Sample dataPro
Render a content layout with invented values, or your own, before anything exists in the CMS.
Tag builder
Pick a content type and element, and get the T4 tag and its Handlebars equivalent.
Conflict checks
A push stops if someone changed the same record in the CMS since your pull.
Revert to original
Throw away your edits to one file and get back the version last pulled from T4, after a confirmation.
Your environments, at a glance
A tile for each down the side, with a short code or an icon you choose, and a pencil on the ones you can push to.
Git, if you want it
Commit messages that name the T4 record behind each file, and a commit check before a push.
ComparePro
Diff the local page against the live one, with everything the tool added taken out.
DoctorPro
A read-only check of any T4 instance: version, token expiry, and every path the tool uses.
CI
Push without prompts, with the token from an environment variable.
Team toolsPro
Any number of environments, promote, restore, drift and an audit log, each with a built-in manual, plus planned CI deploys.
Careful with the CMS by default
A push writes straight into the CMS database, so the cautious setting is the default everywhere, and you opt out of it rather than in.
Version control and deploying- Pull-only until you say otherwise. Every environment starts with pushing off, so production cannot be written to by accident.
- Your edits are kept. A pull will not overwrite a file you changed since the last one.
- Conflicts are refused, not warned about. If both you and someone in the CMS changed a file, the push stops and names it.
- Tokens stay out of the project. They go into the Keychain on a Mac and are encrypted for your account on Windows.
- Quiet on the network. The app contacts only the T4 instances and sites your projects name. Update checks are off until you turn them on.
Or stay in the terminal
One command, t4, on macOS, Linux and Windows. It needs Python 3.11 and nothing else, so it installs on machines behind a VPN where package installs are unreliable. Push runs without prompts in CI.
# start of the day
t4 sync # what changed in T4?
t4 serve # the site, at 127.0.0.1:8321
# edit t4-source/test/media/site.css; the page reloads
t4 st # what have I changed?
t4 save -m "Fix the footer gap" # commit it
t4 push # review each file, then sendWhat it does not do
It does not render T4 tags or Handlebars, because nothing outside T4 can. It shortens the front-end loop: CSS, JavaScript and markup, seen against real published pages. Layout logic, such as a branch on whether an element is set, is still tested in T4's Preview or a staging channel.
Where the line fallsSet up your first project
You need a T4 API token, and a VPN connection if your CMS is behind one.