CLI commands
Install and sign in first: CLI. Run any command with --help for the same information in your terminal.
ligament tunnel
Private connectivity from the platform to this machine (e.g. local LLMs)
ligament tunnel create
Create a tunnel (prints the connect token ONCE)
ligament tunnel create <name>ligament tunnel list
List tunnels + live status
ligament tunnel listligament tunnel start
Connect this machine and forward requests to a local target
ligament tunnel start <key>| Option | Description |
|---|---|
--target <url> | local base URL to forward to (default http://localhost:11434 — Ollama) |
--server <url> | tunnel server (worker) URL; default LIGAMENT_TUNNEL_URL / LIGAMENT_WORKER_URL |
--token <token> | connect token; default LIGAMENT_TUNNEL_TOKEN |
ligament tunnel delete
Delete a tunnel
ligament tunnel delete <key>ligament agent
Run Ligament agents locally on this machine
ligament agent start
Drain YOUR task queue here: local loop + local model (Ollama) + local tools
ligament agent start| Option | Description |
|---|---|
--root <dir> | project root — all file operations confined here (default: cwd) |
--model <name> | local model (default LIGAMENT_LOCAL_MODEL or qwen3-coder:30b) |
--ollama <url> | OpenAI-compatible base URL (default http://localhost:11434/v1) |
--poll <seconds> | queue poll interval (default 10) |
--once | drain the queue once, then exit |
--max-turns <n> | per-task turn budget (default 40) |
--allow <csv> | extra allowlisted command binaries |
--yolo | no command gating (throwaway machines only) |
ligament serve-tools
Expose sandboxed dev tools on this machine to your agents (pair with a tunnel)
ligament serve-tools| Option | Description |
|---|---|
--root <dir> | project root — all file operations confined here (default: cwd) |
--port <port> | port to bind on 127.0.0.1 (default 8811) |
--allow <csv> | extra allowlisted command binaries |
--yolo | no command gating (throwaway machines only) |
ligament app
Author, publish, and install Ligament apps
ligament app init
Scaffold an app project (app.ts)
ligament app initligament app validate
Validate the local app manifest
ligament app validateligament app publish
Publish the local app (manifest + workflows) to your workspace
ligament app publish| Option | Description |
|---|---|
-v, --version <semver> | Override the version in app.ts |
ligament app plan
Show what installing an app does here: its dependencies in install order, with prices
ligament app plan <key>| Option | Description |
|---|---|
--plan <key> | the plan to install on |
--json | raw JSON |
ligament app install
Install an app into your workspace (key or key@version). Refused when it needs other apps, unless --with-dependencies
ligament app install <key>| Option | Description |
|---|---|
-v, --version <semver> | specific version to install |
--plan <key> | the plan to install on |
--with-dependencies | install the apps it needs first, in order |
--accept-paid <keys> | dependencies (comma-separated, or "all") whose price you accept: they have no free plan |
--json | raw JSON |
ligament app resume
Retry a failed install from the step that failed
ligament app resume <runId>| Option | Description |
|---|---|
--json | raw JSON |
ligament app updates
Installed apps with a newer version
ligament app updates| Option | Description |
|---|---|
--json | raw JSON |
ligament app upgrade
Upgrade installed apps, dependencies first. Destructive changes are blocked unless confirmed
ligament app upgrade [keys...]| Option | Description |
|---|---|
--all | every app with an update |
--dry-run | show what each upgrade changes; change nothing |
--confirm <keys> | apps (comma-separated) whose destructive change you accept |
--json | raw JSON |
ligament app auto-patch
Read, or turn on/off, "auto-apply patch updates" (the workspace owner's key with settings:write)
ligament app auto-patch [state]| Option | Description |
|---|---|
--json | raw JSON |
ligament app uninstall
Uninstall an app (its records stay). Refused while other installed apps depend on it
ligament app uninstall <key>| Option | Description |
|---|---|
--json | raw JSON |
ligament app list
List your published apps
ligament app listligament spec
Read, pull, plan and apply spec artefacts (pages, access rules, …)
ligament spec list
List artefacts (effective layer)
ligament spec list| Option | Description |
|---|---|
-t, --type <type> | artefact type (page, acl) |
-a, --app <app> | app key, or __tenant__ |
--json | output raw JSON |
ligament spec get
Print an artefact doc (summary on stderr)
ligament spec get <address>| Option | Description |
|---|---|
-l, --layer <layer> | base | custom | source | effective (default) |
-v, --version <n> | a past version (see spec history) |
--json | the whole response (address, layer, hash, version, doc, …) |
ligament spec pull
Write <type>.<key>.json per artefact + .ligament/spec.lock.json (an app key pulls all its artefacts)
ligament spec pull <address...>| Option | Description |
|---|---|
-d, --dir <dir> | target directory (default .) |
ligament spec validate
Validate files against the workspace (no state, no permissions)
ligament spec validate <file...>ligament spec plan
Plan files: action, layer, merge, changes, permission, human-apply notice (writes nothing)
ligament spec plan <file...>| Option | Description |
|---|---|
--json | output the raw plan |
ligament spec apply
Apply files all-or-nothing, then update the lock
ligament spec apply <file...>| Option | Description |
|---|---|
-m, --merge | apply a clean merge with changes made since you pulled (default: refuse and write <file>.merged.json) |
--title <title> | changeset title if a person must apply it |
--json | output the raw response |
ligament spec history
Version history (newest first)
ligament spec history <address>| Option | Description |
|---|---|
--json | output raw JSON |
ligament spec schema
Print the JSON Schema of an artefact type
ligament spec schema <type>ligament spec catalog
Print the catalog: types, entities and fields, roles, components, blocks
ligament spec catalogligament changeset
Propose, review and apply changesets (several artefact changes applied together)
ligament changeset list
List changesets, newest first
ligament changeset list| Option | Description |
|---|---|
-s, --status <status> | open,ready,applied,discarded (comma-separated) |
--json | output raw JSON |
ligament changeset show
Show a changeset: items and activity
ligament changeset show <id>| Option | Description |
|---|---|
--json | output raw JSON |
ligament changeset create
Create a changeset, optionally with items from files
ligament changeset create <title> [file...]| Option | Description |
|---|---|
--ready | mark it ready for review |
--note <note> | a note for the reviewer |
ligament changeset add
Add or replace items from files
ligament changeset add <id> <file...>ligament changeset remove
Drop one item
ligament changeset remove <id> <address>ligament changeset ready
Mark ready for review
ligament changeset ready <id>ligament changeset plan
Plan every item against current
ligament changeset plan <id>| Option | Description |
|---|---|
--json | output the raw plan |
ligament changeset apply
Apply every item all-or-nothing
ligament changeset apply <id>| Option | Description |
|---|---|
-m, --merge | apply clean merges with changes made since |
--json | output the raw response |
ligament changeset discard
Discard (kept, with its activity)
ligament changeset discard <id>ligament records
Read and change records, with effective dating (as of a date, history, scheduled changes)
ligament records list
List records (as of a date with --as-of)
ligament records list <entity>| Option | Description |
|---|---|
--as-of <date> | dated fields as of this date (access is decided now) |
--known-at <instant> | as recorded at this instant (records.as_recorded or an audit:read key) |
-f, --filter <field.op.value> | filter (repeatable), e.g. department.eq.Ops, salary.gte.60000 |
--match <all|any> | combine filters with AND (default) or OR |
--sort <keys> | e.g. -salary,name |
-q, --q <text> | search |
-n, --limit <n> | page size (default 50) |
--json | raw JSON |
ligament records get
One record (as of a date with --as-of)
ligament records get <entity> <id>| Option | Description |
|---|---|
--as-of <date> | as of this date |
--known-at <instant> | as recorded then |
ligament records history
An effective-dated record's versions, newest first
ligament records history <entity> <id>| Option | Description |
|---|---|
-g, --group <group> | one group (e.g. comp) |
--corrections | include superseded versions (records.as_recorded) |
--known-at <instant> | as recorded then |
--json | raw JSON |
ligament records changes
The changes feed for exports: changes recorded since a watermark
ligament records changes <entity>| Option | Description |
|---|---|
--since <instant> | recordedSince: your last run's watermark |
--until <instant> | recordedUntil |
-g, --group <groups> | comma-separated groups |
--overlaps-before <date> | only changes touching periods before this date (already exported) |
--cursor <c> | next page |
--json | raw JSON |
ligament records change
Change a record; on a dated entity from a date (--from), as a correction or a rescind
ligament records change <entity> <id>| Option | Description |
|---|---|
-s, --set <field=value> | a value (repeatable), e.g. --set salary=66000 |
--from <date> | effective date (future = scheduled) |
--reason <reason> | event reason, e.g. merit |
--mode <mode> | change (default) | correction | rescind |
--version-id <id> | correction/rescind: the version (see records history) |
--group <group> | rescind by date: which group |
ligament fx
Exchange rates: list them, convert an amount, set a rate
ligament fx rates
The rates in force on a date (default today)
ligament fx rates| Option | Description |
|---|---|
--as-of <date> | the date whose rates apply |
--json | raw JSON |
ligament fx convert
Convert an amount, e.g. ligament fx convert 1250.00 USD --to EUR
ligament fx convert <amount> <currency>| Option | Description |
|---|---|
--to <code> | target currency (ISO 4217) |
--as-of <date> | use the rate in force on this date |
--json | raw JSON |
ligament fx set
Set the rate of base → quote (1 base = rate quote) from a date, e.g. ligament fx set EUR USD 1.0845 --from 2026-01-31
ligament fx set <base> <quote> <rate>| Option | Description |
|---|---|
--from <date> | the date the rate takes effect (YYYY-MM-DD) |
--source <key> | where the rate comes from (default manual) |
ligament compliance
Compliance: your obligations, audience preview, sync, evidence packs
ligament compliance mine
Your own assignments
ligament compliance mine| Option | Description |
|---|---|
--state <state> | open (default), done or all |
--json | raw JSON |
ligament compliance preview
Who an obligation assigns to, and why
ligament compliance preview <obligationId>| Option | Description |
|---|---|
--json | raw JSON |
ligament compliance sync
Bring assignments up to date now
ligament compliance sync| Option | Description |
|---|---|
--obligation <id> | only this obligation |
ligament compliance pack
Download an evidence pack ZIP
ligament compliance pack| Option | Description |
|---|---|
--from <date> | YYYY-MM-DD |
--to <date> | YYYY-MM-DD |
--source <id> | a requirement source |
--obligation <id> | one obligation |
--by-control | also group the files by control |
-o, --output <file> | where to write the ZIP |
ligament esign
E-signatures: create, send, void and follow envelopes; download sealed PDFs
ligament esign create
Create and send an envelope on a record
ligament esign create| Option | Description |
|---|---|
--entity <key> | the record's entity |
--record <id> | the record id |
--file <attachmentId> | a PDF attached to the record (repeatable) |
--template <key> | a template instead of files |
--signer <email[:name]> | a signer (repeatable; in order with --sequential) |
--cc <email[:name]> | gets a copy (repeatable) |
--title <title> | |
--message <text> | |
--sequential | one signer after another |
--expires-days <n> | |
--remind-days <n> | |
--draft | create without sending |
--json | raw JSON |
ligament esign send
Send a draft
ligament esign send <id>| Option | Description |
|---|---|
--json | raw JSON |
ligament esign void
Withdraw an unfinished envelope
ligament esign void <id>| Option | Description |
|---|---|
--reason <text> | shown to the signers |
--json | raw JSON |
ligament esign remind
Remind the signers whose turn it is
ligament esign remind <id>| Option | Description |
|---|---|
--json | raw JSON |
ligament esign status
Status, recipients and seal
ligament esign status <id>| Option | Description |
|---|---|
--json | raw JSON |
ligament esign list
Envelopes you may see
ligament esign list| Option | Description |
|---|---|
--status <status> | |
--json | raw JSON |
ligament esign download
Download the sealed PDF
ligament esign download <id>| Option | Description |
|---|---|
-o, --output <file> |
ligament dev
Show how to run the local dev stack (web app + worker on the ligament engine)
ligament dev| Option | Description |
|---|---|
-p, --port <port> | Web app port |
-w, --worker-port <port> | Worker port |
ligament trigger
Trigger a workflow run (dev only)
ligament trigger <workflowId>| Option | Description |
|---|---|
-i, --input <json> | JSON input for the workflow |
ligament login
Create an API key through the browser and save it to .env. Opens LIGAMENT_URL (default http://localhost:3000)
ligament loginligament workflows
List workflows in the workspace with their run counts and last status
ligament workflows| Option | Description |
|---|---|
--source <source> | Filter by source: code | builder | legacy |
--json | Output raw JSON |
ligament approvals
List approvals waiting on a human decision
ligament approvals| Option | Description |
|---|---|
-s, --status <status> | pending | approved | rejected | all |
-a, --assignee <email> | Filter by assignee |
-n, --limit <n> | Number to show |
--json | Output raw JSON |
ligament approve
Approve a pending approval and resume its run
ligament approve <approvalId>| Option | Description |
|---|---|
-m, --note <note> | Note recorded with the decision |
ligament reject
Reject a pending approval and resume its run
ligament reject <approvalId>| Option | Description |
|---|---|
-m, --note <note> | Note recorded with the decision |
ligament cancel
Cancel a run that is still in flight
ligament cancel <runId>ligament replay
Start a new run from a previous run's input
ligament replay <runId>ligament runs
List recent workflow runs, or show one run's stages
ligament runs [runId]| Option | Description |
|---|---|
-n, --limit <n> | Number of runs to show |
-w, --workflow <id> | Filter by workflow ID |
-s, --status <status> | Filter by status (running|complete|failed|cancelled) |
--json | Output raw JSON |
ligament secrets
Manage workspace vault secrets
ligament secrets set
Store or update a secret (key must be UPPER_SNAKE_CASE)
ligament secrets set <key> <value>ligament secrets list
List stored secret keys (values are never shown)
ligament secrets listligament secrets delete
Delete a secret from the vault
ligament secrets delete <key>ligament prompts
Manage deployed prompt templates
ligament prompts deploy
Deploy .md prompt files from a directory (default: ./prompts)
ligament prompts deploy [dir]ligament prompts list
List all deployed prompts
ligament prompts listligament prompts pull
Download deployed prompts to local .md files (default: ./prompts)
ligament prompts pull [dir]ligament endpoints
Manage deployed HTTP endpoints
ligament endpoints list
List deployed endpoints and their URLs
ligament endpoints listligament skills
Manage deployed skills (reusable workflow building blocks)
ligament skills list
List all deployed skills
ligament skills listligament rag
Manage RAG collections
ligament rag index
Index .txt and .md files from a directory into a RAG collection
ligament rag index <collection> [dir]