Your first project
Two separate things get set up, and it helps to keep them apart:
This page uses the command line. In the desktop app the welcome screen does steps 2 and 3 for you.
1. Install the tool
Section titled “1. Install the tool”Once per computer: see Install the command line.
2. Set up a project
Section titled “2. Set up a project”A project is just a folder, one per website. Make one wherever you keep your work, go into it, and set it up:
mkdir ~/Sites/MySitecd ~/Sites/MySite
t4 init # creates the project heret4 env add test https://myweb-test.example.edu # the CMS addresst4 token set test # paste your API tokent4 token check test # one read-only request: does it work?The token is how the tool signs in to Terminal Four as you. Get one from someone with CMS admin access, or generate your own in Terminal Four under Administration → User Management. It is never committed. On a Mac it goes into your login Keychain; on Windows it is encrypted for your Windows account (DPAPI), so a copy of the project folder synced to OneDrive or restored on another machine does not carry a usable token. On Linux it is a file only you can read. t4 token status says where each one is.
3. Bring the site down
Section titled “3. Bring the site down”t4 pull # the templates, from the CMSt4 serve # fetches a copy of the published pages, then opens the sitet4 pull needs the CMS reachable; t4 serve fetches the published pages the first time (that is the mirror: no separate step) and then runs everything from disk. Behind a VPN, be connected for both. The first t4 serve takes a few minutes; after that it starts instantly.
Your browser now shows the site at http://127.0.0.1:8321.
4. Make a change
Section titled “4. Make a change”Open any file under t4-source/test/ in your editor. The stylesheets are in media/, the page templates in pageLayout/, the component markup in contentLayout/. Save it, and the browser refreshes by itself.
Not sure which file produced what you are looking at? The site you are serving has a T4 button in the corner. Open it, turn on Select on click, and click anything on the page: it names the content type, the template and the stylesheet behind it, each with a button to open that file in your editor. See the inspector.
5. Send it back
Section titled “5. Send it back”t4 st # what have I changed?t4 save -m "Fix the footer gap" # record it in version controlt4 push # send it to Terminal Fourt4 push shows you each change and asks before sending it. Nothing leaves your machine without you saying yes. Pushing is off for every environment until you turn it on; see Pulling and pushing.
Next: what each feature does, then a day’s work.
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.