Using the lll CLI
The CLI and web board work on the same issues. Start with
the README quickstart or join an existing board.
Every command has --help; lll --help lists the available commands.
A day-to-day workflow
The examples below continue from the local APP board in the README.
The branch helpers need a Git repository; run git init in my-project
first if it is a new directory.
lll label create bug
lll issue create -t "Fix login" --priority 1 --assignee "$USER" --label bug # APP-2
lll issue list --state todo --sort -updated
lll issue branch-name APP-2 # print app-2-fix-login; changes nothing
lll issue claim APP-2 # take it exclusively; non-zero if someone holds it
lll issue start APP-2 # state -> in-progress; leaves Git untouched
lll issue start APP-2 --branch # also create or switch to that branch, and record the work site
lll issue view # APP-2, inferred from the git branch
lll issue comment -b "done in abc123" # markdown; renders on the web board
lll issue ref APP-2 gh#42 # append once; also retries a failed PR-reference save
lll issue close # finish APP-2; release your claim and keep the assignee
For an unfinished handoff, use lll issue release APP-2 instead of closing.
It releases your claim and clears the assignee when it still names you.
GitHub integration
The PR helper needs a GitHub remote:
lll issue pr # gh pr create titled "APP-2: Fix login"; records gh#N
Live events
These commands stream until Ctrl-C:
lll watch --state in-review # live NDJSON-able event stream for a query
lll issue watch APP-2 # one issue + its comments, until Ctrl-C
Ask a person a question
An agent that needs a decision opens an ask on the issue instead of guessing. The issue needs a human until someone answers:
lll issue ask APP-1 "Ship behind a flag, or wait for the migration?"
lll issue list --needs-human # every issue with an open ask
lll issue answer APP-1 "Ship behind the flag" # closes the ask and stores the answer
lll issue ask APP-1 # the issue's asks, with their answers
lll issue ask APP-1 "question" --wait 1h blocks until the ask is answered
and prints the answer alone on stdout; it exits 5 if the hour passes first.
The board shows a “Needs human” badge on the card and an answer form on the
issue page. The session that asked cannot answer its own ask: another
member answers, or the same member under a different agent label.
An issue with an open ask cannot move to done or cancelled: answer it, or
pass --force --reason "why" to lll issue close or
lll issue update --state, which closes the ask unanswered and comments.
--force without --reason is refused there. The command prints what it
forced past: open asks, open descendants, or both.
Record what you ran
An evidence entry is one command that was run for an issue: the command, the exit code it returned and, optionally, one file it produced.
lll issue evidence APP-1 --command "make test" --exit-code 0 --artifact test.log
lll issue evidence APP-1 # the issue's entries, oldest first
lll issue evidence APP-1 --download ID > test.log
lll issue close APP-1 --evidence "make test" --exit-code 0 # record one, then close
--exit-code is required with --command: lll does not run the command, and
does not assume it passed. A failing run is recorded like a passing one. The
server stores who recorded the entry (the member of the token, and the agent
label) and when. An entry cannot be edited or deleted by a member; a second
run is a second entry. lll issue view APP-1 lists the entries, and
lll issue view APP-1 --json carries them as evidence.
lll issue close without --evidence closes as before. If the close is
refused after the entry was written, the entry stays and the refusal says so.
Break work into subtasks
An issue can have one parent and children of its own. For example:
APP-1 (parent: 1/2 done)
├─ APP-2 (done)
└─ APP-3 (todo)
lll issue update APP-2 --parent APP-1
lll issue create -t "Check migration" --parent APP-1
lll issue list --parent APP-1 # direct children
lll issue list --under APP-1 # parent plus every descendant
lll issue view APP-1 # child states and direct progress
lll issue update APP-2 --parent none
Trees stay within one team and cannot contain cycles. Moving a child moves
its subtree; deleting a parent detaches its children. Closing with open
descendants exits 4 unless you explicitly use --force, which leaves those
descendants unchanged. Projects remain a separate way to group work.
Teams and configuration
lll team list
lll team create SIDE -n "Side project"
lll team delete SIDE # delete a team holding no issues (archive keeps ids working)
lll config list # every value and the file it came from
lll config get team # one effective value, for scripts
lll config check # does the configured url answer as a PocketBase API?
lll whoami # which member, server and team you are acting as
lll board -w # open the web board
lll completions zsh # bash, zsh, fish
Identity and access
Create a bot under your own member identity:
lll bot create bot-myrepo # a bot member you own, and an agent prompt with its token; refuses an existing bot
lll bot rotate bot-myrepo --env > agent.env # a new token (the old one stops working), printing only the LLL_URL/LLL_TOKEN exports
The following account operations require database superuser credentials. A workspace Admin role alone does not supply those credentials:
lll member invite lee --email lee@example.com # add a colleague + temp password, in one
lll member set-password NAME --password <pw> # superuser gives a member credentials
lll member delete NAME # delete a member with nothing assigned (superuser only)
lll token create NAME # a one-year agent token (superuser only), printed once
Use lll logout to clear the stored token.
Attachments and script output
lll issue attach APP-1 ./shot.png attaches a file (at most 20 per issue,
20 MiB each); issue download and issue detach take the filename.
Scripts rely on the CLI contract
(lll help contract): exit codes, --json fields and permanent spellings.
Data goes to stdout and notices to stderr. Exit codes: 1 error, 2 usage, 3
not found, 4 refused, 5 nothing to do, 6 not authenticated. For lll watch
output, start from lll watch --help.
Configuration
Settings resolve per key: environment variables, then the repo’s
.lll.toml, then ~/.config/lll/lll.toml. .lll.toml is found by walking
up from the working directory, stopping at the repo root, a directory holding
.git, or your home directory. A .lll.toml directly in $HOME is never
read. lll config list shows each value and its origin.
The home config’s token is sent only to the url saved beside it. When a repo
.lll.toml, LLL_URL or --url names another server, commands that need
the token exit 6. LLL_URL and LLL_TOKEN set together work as a pair.
Scoped commands (issue, project, label, doc, finding, watch)
take --team KEY for one invocation. An explicit issue key targets its own
team.
Client settings:
| Env | TOML key | Meaning |
|---|---|---|
LLL_URL |
url |
API base URL; default http://127.0.0.1:8090, hosted: the board’s address |
LLL_TEAM |
team |
default team key |
LLL_SORT |
sort |
default sort: created, updated, priority, number, title; - descends |
LLL_WEB_URL |
web_url |
board base URL for browser links |
LLL_TOKEN |
token |
auth token; a secret, never in a repo’s .lll.toml |
LLL_AUTO_UPDATE |
auto_update |
0 / false stops a Homebrew install updating itself; see Upgrades |
lll board never puts the board token into a link to a repo file’s
web_url.
Server settings, environment only, read by lll up:
| Env | Meaning |
|---|---|
LLL_ADMIN_EMAIL / LLL_ADMIN_PASSWORD |
database superuser; set both or neither |
LLL_ALLOWED_ORIGINS |
extra browser origins that may read API responses; default none |
LLL_BIND |
bind address for both ports; default 127.0.0.1 |
LLL_BOARD_TOKEN |
pins the board’s access token; default a new one each boot |
Web board
The board is server-rendered: all teams at /, one team at /t/KEY/, issues
at /issue/KEY-123, docs at /t/KEY/docs, search at /search?q=TEXT, and
your login at /me. Changes appear in every open page without a reload.
Cards drag between state columns. /search queries the database, so a search
is a shareable URL; lll search TEXT runs the same engine.
Coding agents
Run lll bot create bot-my-project as a logged-in member to create a bot you
own. The command prints a prompt containing the server, identity and token
for your agent. Treat that prompt as a credential. Creating a bot with an
existing name is refused; lll bot rotate NAME replaces a token.
lll bot create and lll bot rotate use your configured token. An
LLL_ADMIN_EMAIL/LLL_ADMIN_PASSWORD pair in the environment is read only
when no token is configured. Beside a token the pair is ignored, and the
command prints a notice on stderr that says so; --env and --json print
no notices. To act as the administrator
while a token is configured, pass --admin-email and --admin-password.
An agent can read the working conventions with lll skill get lll. They
cover claiming an issue before work, leaving findings and decisions, and
recording evidence before closing. The CLI contract describes the
stable command names, exit codes and JSON fields for automation.
Delete a disposable project
lll project delete NAME --force keeps its issues and removes their project.
To delete the issues too, preview the cascade first:
lll project delete NAME --cascade --dry-run --json
lll project delete NAME --cascade --if-preview REVISION --yes --json
Use the preview’s revision in the second command. A changed issue, comment or
reference invalidates it. Execution is atomic and refuses claims or external
references (including children, blockers, linked docs and webhook filters);
release or detach those first. Preview performs no writes and works for
read-only members who can see the project. Without --if-preview, execution
still checks its fresh preview again inside the delete transaction. Terminal
confirmation goes to stderr; scripts do not prompt. Older servers refuse the
operation before writes.