trunkjet

Get started

On this page

Command line basics

This page lists the commands you will use every day. Every command has a full description with examples in tjet COMMAND --help, and all of them are in the CLI reference. Add --json to any command to get one machine-readable result instead of text (useful in scripts).

Where you are

tjet whoami                 # who you are signed in as
tjet                        # inside a workspace: where you are and what to do next
tjet doctor                 # checks the connection, your sign-in and this workspace
tjet repo list              # the repositories you can see
tjet stream list            # the streams (like branches) of a repository

Outside a workspace, add --repo NAME to commands that need a repository.

The daily loop

tjet workspace open acme/shop shop    # get a copy into the folder "shop"
cd shop
tjet status                           # what you changed
tjet diff                             # the changed lines
tjet add NEWFILE                      # start tracking a new file
tjet mv OLD NEW                       # move or rename
tjet remove FILE                      # delete a file (recorded at your next save)
tjet save -m "what I did"             # save on this computer only
tjet undo                             # go back to your previous save
tjet redo                             # forward again
tjet restore PATH                     # throw away unsaved edits of a file (shows what first)
tjet send                             # send your saved work to the server as a change
tjet workspace update                 # get the newest work of others (also: tjet pull)

Saving never needs the network and never loses work: your saves are kept on your computer until you send them. If a command is interrupted, tjet recover finishes it or rolls it back. See the recovery guide.

Review and land

tjet review create --reviewer bob     # ask someone to review your change
tjet inbox                            # what needs you: review requests and so on
tjet diff --change ID                 # what a change changes
tjet review comment ID "text" --path src/main.rs --line 12
tjet review approve ID                # approve (people only, never agents)
tjet review request-changes ID "why"
tjet land ID                          # merge an approved change into its stream
tjet revert ID                        # undo a landed change (a new change to review)

What a stream requires before a change may land (approvals, checks) is its policy: tjet stream policy STREAM shows it. Nobody approves their own change unless the policy allows self-approval (the repository's Settings, Rules for merging).

Roll back a change

To roll back a change that is already merged, use Roll back this change on the change in the web app, or tjet revert ID (Git: git revert). Both make a new change that undoes it; it is reviewed and merged like any other, and the history keeps both. Nothing is deleted.

Look around

tjet log [STREAM]           # history of your copy or of a stream
tjet blame PATH             # who changed each line, and when
tjet history PATH           # the versions of one file
tjet search WORDS           # find text in files, and file names
tjet change list --mine     # your changes
tjet file show PATH         # a file as it is on the server

Streams and merging

tjet stream create NAME             # a new stream
tjet workspace switch STREAM        # move this copy to another stream
tjet merge STREAM                   # merge a stream into main (a change to review)
tjet rebase                         # move your change onto the newest version of its stream
tjet conflict list                  # list merge conflicts
tjet conflict resolve PATH --file F # resolve one with the content of F

Files that cannot be merged

tjet lock acquire PATH      # lock an image or design file while you work on it
tjet lock list
tjet lock release PATH

Git words

tjet pull, tjet push, tjet commit, tjet clone, tjet switch, tjet checkout and tjet branch work as the Git commands of the same name do, mapped onto the commands above. To move an existing Git repository, see the migration guide.

Settings and exit codes

Profiles, defaults and environment variables (TJET_SERVER, TJET_PROFILE, TJET_TIMEOUT, TJET_NO_PROGRESS) are described in User configuration. --timeout SECONDS limits a whole command. A mutating command that times out answers exit code 8 ("unknown outcome"): repeat it with the same --request-id and the server replays what it already did instead of doing it twice.

Use it from scripts and CI

Give a script a token, never a password: --token-stdin or --token-fd N read it without putting it in the process list, and TJET_TOKEN_FILE names a token file. --non-interactive makes every command return an error instead of asking a question. Agents have their own, safer way in: see Agents and MCP.