Skip to content

Your first project

Two separate things get set up, and it helps to keep them apart:

Two things get set up: the tool, installed once per computer, which gives you the t4 command and serves every project; and a project, one per website, holding that site's templates, settings, history and credentials. Installing the tool does not create a project.Two things get set up: the tool, installed once per computer, which gives you the t4 command and serves every project; and a project, one per website, holding that site's templates, settings, history and credentials. Installing the tool does not create a project.

This page uses the command line. In the desktop app the welcome screen does steps 2 and 3 for you.

Once per computer: see Install the command line.

A project is just a folder, one per website. Make one wherever you keep your work, go into it, and set it up:

Terminal window
mkdir ~/Sites/MySite
cd ~/Sites/MySite
t4 init # creates the project here
t4 env add test https://myweb-test.example.edu # the CMS address
t4 token set test # paste your API token
t4 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.

Terminal window
t4 pull # the templates, from the CMS
t4 serve # fetches a copy of the published pages, then opens the site

t4 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.

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.

Terminal window
t4 st # what have I changed?
t4 save -m "Fix the footer gap" # record it in version control
t4 push # send it to Terminal Four

t4 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.