Pushing from CI
Push runs without prompts with --yes, and takes its token from the environment instead of the token store:
export T4_TOKEN_TEST="$T4_API_TOKEN_FROM_YOUR_SECRET_STORE"t4 init && t4 env add test https://myweb-test.example.edu --pusht4 push --env test --yes pageLayout/home.header.htmlT4_TOKEN_<NAME> is the environment’s name in capitals, with anything that is not a letter or digit as _. Plain T4_TOKEN is accepted only when the project has a single environment, so a production token left in a shell is never sent to whichever --env was typed.
Name the files to push. --yes skips the per-file prompt, so explicit paths are what stand between a pipeline and pushing everything that differs.
Exit status
Section titled “Exit status”| Status | Meaning |
|---|---|
0 |
everything went |
1 |
a write failed |
2 |
a conflict, or a change in T4 since the comparison, stopped something |
See Pulling and pushing for what counts as a conflict.
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.