Quick Start
Get from zero to useful in minutes. This guide assumes you have already built
flwd and have a simple workspace (see Getting Started).
We will:
- list jobs,
- plan a run,
- execute a job and watch logs,
- enable shell completion.
1) List → Plan → Run
From your workspace:
$ flwd :jobsPlan a job first. Planning validates arguments and shows what would run, without actually executing it:
$ flwd :plan hello-world --name "Alice"Now run it:
$ flwd hello-world --name "Alice"What happens:
:jobsdiscovers all jobs from local trees, git sources and add‑ons,:planvalidates inputs, profiles and executors and prints a human‑readable plan,- the bare job name executes the plan and streams logs and events to your terminal.
2) Watch structured output
You can ask for structured JSON output for automation or debugging:
$ flwd hello-world --name "Alice" --jsonThis prints a stream of events (start, log messages, completion, errors) as
JSON. Tools like jq can be used to filter and reshape this.
$ flwd hello-world --name "Alice" --json | jq '.event, .log // empty'3) Explore the TUI
For interactive use, launch the terminal UI:
$ flwd :tuiThe TUI lets you browse jobs, fill arguments with forms, run jobs and watch logs, all from the keyboard. It talks to the same engine and uses the same job definitions as the CLI.
4) Enable basic completion
Turn on shell completion to avoid typing job names and flags by hand. For example, on Bash:
$ flwd completion bash > ~/.local/share/flwd.bash
$ echo 'source ~/.local/share/flwd.bash' >> ~/.bashrc
$ source ~/.bashrcNow try typing:
$ flwd <TAB>
$ flwd hello-world --<TAB>Completions reflect your actual job catalogue and argument specifications.
Where to go next
- Quickstart (CLI) – a slightly deeper tour of the CLI.
- Serve Mode (HTTP + SSE) – run
flwdas a small HTTP server. - Sources (Local, Git) – load jobs from other directories and git.
- OCI Add‑On Sources – package jobs inside container images.
- Container Executor – run jobs inside rootless containers.
- Troubleshooting – common errors and how to fix them.