Skip to content

Using the command line

This page is a tour of the truss command: how the commands are organised, what to type to answer common questions, and how to use them in scripts. The command line reference lists every command and option.

Commands come in layers: a noun, then what to do with it. You can always ask truss help for the list, and truss help <command> for one command.

truss
├── status is everything fine?
├── dashboard the same, as a live screen
├── project / projects this folder's project / every project the daemon knows
├── flows list | show | graph the flow files of this project
├── pipelines list | show what the daemon has registered
├── schedules what runs when
├── runs [<flow>] | show what ran, and how it went
├── daemon start | stop | status | logs | install | uninstall | run
├── desktop open TRUSS Desktop
├── run / validate run or check a flow here, without the daemon
├── register / unregister / pause / resume / trigger / cancel / logs
├── secret set | list | remove
├── env where TRUSS keeps its files
└── help [<command>] | version

Three questions decide which command to use:

You want to know about Ask Needs the daemon
The files in this project truss flows, truss project, truss validate no
What the daemon is doing truss pipelines, truss schedules, truss runs, truss projects (truss status and truss dashboard also work without one) yes
Where TRUSS keeps things truss env, truss daemon logs no

Commands that can answer without a daemon do, and say unknown for what only the daemon knows. The read-only commands change nothing and never start or stop the daemon.

$ truss status
TRUSS 0.3.0 (linux/amd64)
Project shop, 4 flows in .truss/flows/
Daemon running, pid 4121, up 2h 5m, 127.0.0.1:7878
Desktop http://127.0.0.1:7878/ (open it with: truss desktop)
Runs 1 running, 0 queued (limit 4 at once)
Flows 4 registered: 3 ready, 1 running, 0 paused, 0 invalid
Last run build running just now (truss runs show 20261117-091500-a1b2c3)
Home /home/me/.truss

Without a daemon the screen says Daemon not running (start it with: truss daemon start). truss status exits 0 either way, because it answers a question. When a script needs to know whether the daemon runs, use truss daemon status, which exits 1 when it does not.

truss dashboard draws the same facts as a frame of plain ASCII, with the load of the machine and the latest runs. On a terminal it redraws every two seconds until you press Ctrl-C.

+- TRUSS 0.3.0 2026-11-17 09:15:02 -------------------------------------------+
| Daemon running pid 4121 127.0.0.1:7878 up 2h 5m |
| Runs 1 running, 0 queued [#####...............] 1 of 4 slots |
| Host CPU [##........] 21% Mem [######....] 61% (9.6G of 15.7G) |
+------------------------------------------------------------------------------+
+- Flows (3) ------------------------------------------------------------------+
| STATE FLOW NEXT RUN LAST RUN |
| running build - succeeded 14m 2s ago |
| ready nightly 2026-11-18 01:30:00 failed 23h 40m ago |
| paused release - - |
+------------------------------------------------------------------------------+
+- Latest runs ----------------------------------------------------------------+
| RUN FLOW STATUS WHEN TOOK |
| 20261117-091500-a1b2c3 build running just now 12s |
| 20261117-090100-9f8e7d build succeeded 14m 2s ago 41s |
+------------------------------------------------------------------------------+
  • The frame is as wide as COLUMNS (60 to 120, default 80). Export COLUMNS to get a wider screen.
  • It uses + - |, # and . only: no colour and no special font, so it reads the same over SSH, in a log and in a CI job.
  • --once, a pipe, a file and the Windows console draw it once instead of redrawing.
  • Without a daemon it says so and lists the flows of your project.
$ truss flows
FLOW STEPS SCHEDULES DAEMON FILE
build 6 0 registered .truss/flows/build.yaml
nightly 3 1 registered .truss/flows/nightly.yaml
release 4 0 not-registered .truss/flows/release.yaml

DAEMON says whether the daemon has the flow (registered, paused, not-registered), or unknown when no daemon runs. A flow whose file does not load shows INVALID: and its error; the other flows are still listed.

$ truss flows show nightly
Flow nightly
File .truss/flows/nightly.yaml
Project shop
Daemon registered
Concurrency 2
Overlap queue
Environment REGION, STAGE (names only)
Secrets NPM_TOKEN (names only)
Schedule 30 1 * * * (UTC, missed: run)
STEP NEEDS TIMEOUT RETRIES IF RUN
compile - 10m0s - - make build
test compile - 2 - make test
publish compile,test - - - make publish

Environment variable and secret names are listed so you can see what a flow depends on. Values are never printed here; to see them for one step, use flows show <flow> <step>. flows graph shows the order the steps run in:

$ truss flows graph nightly
nightly: 3 steps in 3 stages, at most 2 at once
stage 1
[compile]
stage 2
[test] <- compile
stage 3
[publish] <- compile, test

Steps in one stage do not wait for each other, so they can run together up to the flow’s concurrency. To see the project itself, use truss project; to see every project the daemon has been told about, use truss projects:

$ truss projects
PROJECT FLOWS RUNNING PAUSED INVALID ROOT
shop 4 1 0 0 /home/me/work/shop
docs 2 0 1 0 /home/me/work/docs
$ truss schedules
NEXT RUN FLOW CRON ZONE MISSED STATE
2026-11-17 09:20:00 poll */5 * * * * local skip active
2026-11-18 01:30:00 nightly 30 1 * * * UTC run active

The list is across every registered flow, soonest first. A paused flow still shows its schedules, marked paused. truss pipelines show <name> gives one flow in full: its file, schedules, steps and five latest runs.

Find runs, then look at one:

$ truss runs --status failed --limit 5
$ truss runs show last
Run 20261117-091500-a1b2c3
Flow nightly
Status failed: nightly failed at test (exit 3)
Trigger schedule
Created 2026-11-17 09:15:00 (4m 2s ago)
Took 12s
Steps 3 (1 succeeded, 1 failed, 1 stopped)
Log truss logs 20261117-091500-a1b2c3
STEP STATUS EXIT TOOK TRY TIMELINE
compile succeeded 0 4.2s - |#######...............|
test failed 3 7.1s 2 |.......##############.|
publish stopped - - - |......................|

The timeline shows when each step ran inside the run, so a slow step or a gap (a step waiting for the concurrency limit) is easy to see. TRY is the attempt number of a step that was retried. Steps that never started and steps that failed are explained under NOTES. Then read the log:

$ truss logs 20261117-091500-a1b2c3

truss runs show exits 0 even for a failed run: it reports. To make a command fail when a run fails, use truss trigger <name> --follow, which exits 1 unless the run succeeded.

Option of truss runs Meaning
<flow> Only runs of that flow.
--status <s> queued, running, succeeded, failed, cancelled or skipped.
--active Queued or running runs.
--limit <n> At most n runs (default 30).

--status and --active look at the newest 1000 runs.

$ truss daemon status
$ truss daemon logs -n 20
$ truss daemon logs --follow

The daemon’s own log records when it started, which files it registered, and which runs it started for which reason. It is a file, so truss daemon logs works when the daemon has crashed or stopped, which is when you want it. truss env shows where that file is, with the TRUSS home and the project it sees from here.

Add --json to status, project, projects, flows, flows show, pipelines, pipelines show, schedules, runs, runs show and daemon status. One indented JSON document goes to standard output. Lists are [] when empty, never null. Daemon objects (pipelines, runs) use the field names of the daemon API; the other documents are described below.

# fail a script when the daemon is down
truss daemon status --json >/dev/null || { echo "daemon down" >&2; exit 1; }
# names of the flows whose last run failed
truss pipelines --json | jq -r '.[] | select(.last_run.status == "failed") | .name'
# the newest failed run of one flow
truss runs nightly --status failed --limit 1 --json | jq -r '.[0].id'
# flows of this project the daemon does not have yet
truss flows --json | jq -r '.[] | select(.daemon == "not-registered") | .name'
Command JSON
status {version, project, daemon, desktop_url, pipelines: {registered, ready, running, paused, invalid}, recent_runs, home}. project, daemon and desktop_url are null outside a project or without a daemon; project_error and daemon_error appear when the cause is a problem (an unreadable truss.yaml, a daemon that does not answer), and status still exits 0.
daemon status {running, daemon}. Exit 1 when not running.
project {name, description, root, flows, registered}. registered is absent without a daemon.
projects [{name, root, registered, running, paused, invalid}].
flows (a list of these), flows show {name, file, path, valid, error, pipeline, daemon, concurrency, overlap, jobs, schedules, env, secrets, steps}; env and secrets are names only, daemon is one of registered, paused, not-registered, unknown.
schedules [{pipeline, cron, timezone, missed, next, paused}].
pipelines, pipelines show, runs, runs show The objects of the daemon API.

Exit codes are the same everywhere: 0 on success, 1 on any error, with a one-line error: ... on standard error. Output meant for a script goes to standard output, hints and errors to standard error.

  • truss help lists every command; truss help flows or truss flows --help explains one.
  • A command that needs the daemon says start it with: truss daemon start when none runs.
  • A command that needs a project and finds no truss.yaml names the folder it looked in. Run TRUSS from the project folder.
  • A flow name that is not found lists the flows that exist; an unknown flow or run id points to the command that lists them.
  • truss run --help and truss validate --help are not help. Their argument is a flow name or a path.