Skip to content

Quick start

From an empty folder to a flow that runs on a schedule, in about five minutes. You need TRUSS installed and a terminal.

In the folder of your project, run:

$ truss init
Set up TRUSS in this folder. Press Enter to take the answer in [brackets].
Name of the project [demo]:
What should the flow do?
1) go - Go module: vet, test and build (found go.mod)
...
Choose [1]:
Name of the flow [build]:
How should it start?
1) by hand (truss run build)
2) on a schedule
3) when files change
Choose [1]:
Show a desktop notification when it fails? (y/n) [n]:
created truss.yaml
created .truss/flows/build.yaml (Go module: vet, test and build)

Every question has a suggestion; press Enter to take it. truss init --yes takes them all.

You now have a project:

demo/
├── truss.yaml # names the project
└── .truss/
└── flows/
└── build.yaml # your flow; commit it

Prefer to write the files yourself? A project needs a truss.yaml:

truss.yaml
version: "1"
project:
name: demo

and a flow in .truss/flows/:

.truss/flows/hello.yaml
version: "1"
flow:
name: hello
steps:
- id: greet
run: echo "Hello from TRUSS"
$ truss validate
truss.yaml is valid: project demo
.truss/flows/hello.yaml is valid: flow hello, 1 steps, concurrency 1
step greet

truss validate reads your files and reports mistakes. It runs nothing.

Run the flow by its file name, from the project folder:

$ truss run hello
2026-11-16 09:00:00 ==== Setup: the environment the steps run in ====
2026-11-16 09:00:00 setup environment ready
2026-11-16 09:00:00 setup os linux
2026-11-16 09:00:00 setup arch amd64
2026-11-16 09:00:00 setup shell /bin/sh
2026-11-16 09:00:00 setup directory /home/me/demo
2026-11-16 09:00:00 ==== Step greet ====
2026-11-16 09:00:00 step greet started
2026-11-16 09:00:00 step greet | Hello from TRUSS
2026-11-16 09:00:00 step greet finished duration 0.006s exit 0
2026-11-16 09:00:00 ==== Summary ====
2026-11-16 09:00:00 summary succeeded steps 1 duration 0.006s

The ==== lines mark the setup, each step and the summary. What your command prints starts with step <id> |. TRUSS keeps the log in .truss/state/hello/run.log; it adds a .truss/.gitignore so git ignores state/ and nothing else.

If the flow fails, truss run exits with 1, and it tells you how to run just the failed step.

A step can wait for others with needs. Steps that do not wait for each other run together, up to concurrency.

.truss/flows/ci.yaml
version: "1"
flow:
name: ci
concurrency: 2
steps:
- { id: lint, run: echo "lint ok" }
- { id: test, run: echo "tests ok" }
- { id: package, run: echo "packaging", needs: [lint, test] }

lint and test start together; package starts when both succeeded. The first failed step fails the run and stops the rest.

The daemon is a background service. It runs flows on a schedule and keeps their history. Add a schedule to the flow:

.truss/flows/hello.yaml
on:
schedule:
- cron: "30 1 * * *" # every day at 01:30

Start the daemon and tell it about your flows:

$ truss daemon start
daemon started (pid 4242, 127.0.0.1:7878)
$ truss register --all
registered ci (/home/me/demo/.truss/flows/ci.yaml)
registered hello (/home/me/demo/.truss/flows/hello.yaml)
registered 2 flows (1 with schedules)
$ truss schedules
$ truss trigger ci --follow # run it now, and watch
$ truss runs # the history

The daemon does not start by itself after a restart. Run truss daemon install once and it starts every time you log in.

$ truss desktop

TRUSS Desktop opens in your browser: your flows, every run as a graph, and the live log.