Skip to content

CLI commands

View as Markdown

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 list

ligament tunnel start

Connect this machine and forward requests to a local target

ligament tunnel start <key>
OptionDescription
--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
OptionDescription
--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)
--oncedrain the queue once, then exit
--max-turns <n>per-task turn budget (default 40)
--allow <csv>extra allowlisted command binaries
--yolono 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
OptionDescription
--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
--yolono command gating (throwaway machines only)

ligament app

Author, publish, and install Ligament apps

ligament app init

Scaffold an app project (app.ts)

ligament app init

ligament app validate

Validate the local app manifest

ligament app validate

ligament app publish

Publish the local app (manifest + workflows) to your workspace

ligament app publish
OptionDescription
-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>
OptionDescription
--plan <key>the plan to install on
--jsonraw 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>
OptionDescription
-v, --version <semver>specific version to install
--plan <key>the plan to install on
--with-dependenciesinstall the apps it needs first, in order
--accept-paid <keys>dependencies (comma-separated, or "all") whose price you accept: they have no free plan
--jsonraw JSON

ligament app resume

Retry a failed install from the step that failed

ligament app resume <runId>
OptionDescription
--jsonraw JSON

ligament app updates

Installed apps with a newer version

ligament app updates
OptionDescription
--jsonraw JSON

ligament app upgrade

Upgrade installed apps, dependencies first. Destructive changes are blocked unless confirmed

ligament app upgrade [keys...]
OptionDescription
--allevery app with an update
--dry-runshow what each upgrade changes; change nothing
--confirm <keys>apps (comma-separated) whose destructive change you accept
--jsonraw 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]
OptionDescription
--jsonraw JSON

ligament app uninstall

Uninstall an app (its records stay). Refused while other installed apps depend on it

ligament app uninstall <key>
OptionDescription
--jsonraw JSON

ligament app list

List your published apps

ligament app list

ligament spec

Read, pull, plan and apply spec artefacts (pages, access rules, …)

ligament spec list

List artefacts (effective layer)

ligament spec list
OptionDescription
-t, --type <type>artefact type (page, acl)
-a, --app <app>app key, or __tenant__
--jsonoutput raw JSON

ligament spec get

Print an artefact doc (summary on stderr)

ligament spec get <address>
OptionDescription
-l, --layer <layer>base | custom | source | effective (default)
-v, --version <n>a past version (see spec history)
--jsonthe 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...>
OptionDescription
-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...>
OptionDescription
--jsonoutput the raw plan

ligament spec apply

Apply files all-or-nothing, then update the lock

ligament spec apply <file...>
OptionDescription
-m, --mergeapply 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
--jsonoutput the raw response

ligament spec history

Version history (newest first)

ligament spec history <address>
OptionDescription
--jsonoutput 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 catalog

ligament changeset

Propose, review and apply changesets (several artefact changes applied together)

ligament changeset list

List changesets, newest first

ligament changeset list
OptionDescription
-s, --status <status>open,ready,applied,discarded (comma-separated)
--jsonoutput raw JSON

ligament changeset show

Show a changeset: items and activity

ligament changeset show <id>
OptionDescription
--jsonoutput raw JSON

ligament changeset create

Create a changeset, optionally with items from files

ligament changeset create <title> [file...]
OptionDescription
--readymark 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>
OptionDescription
--jsonoutput the raw plan

ligament changeset apply

Apply every item all-or-nothing

ligament changeset apply <id>
OptionDescription
-m, --mergeapply clean merges with changes made since
--jsonoutput 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>
OptionDescription
--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)
--jsonraw JSON

ligament records get

One record (as of a date with --as-of)

ligament records get <entity> <id>
OptionDescription
--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>
OptionDescription
-g, --group <group>one group (e.g. comp)
--correctionsinclude superseded versions (records.as_recorded)
--known-at <instant>as recorded then
--jsonraw JSON

ligament records changes

The changes feed for exports: changes recorded since a watermark

ligament records changes <entity>
OptionDescription
--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
--jsonraw 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>
OptionDescription
-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
OptionDescription
--as-of <date>the date whose rates apply
--jsonraw JSON

ligament fx convert

Convert an amount, e.g. ligament fx convert 1250.00 USD --to EUR

ligament fx convert <amount> <currency>
OptionDescription
--to <code>target currency (ISO 4217)
--as-of <date>use the rate in force on this date
--jsonraw 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>
OptionDescription
--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
OptionDescription
--state <state>open (default), done or all
--jsonraw JSON

ligament compliance preview

Who an obligation assigns to, and why

ligament compliance preview <obligationId>
OptionDescription
--jsonraw JSON

ligament compliance sync

Bring assignments up to date now

ligament compliance sync
OptionDescription
--obligation <id>only this obligation

ligament compliance pack

Download an evidence pack ZIP

ligament compliance pack
OptionDescription
--from <date>YYYY-MM-DD
--to <date>YYYY-MM-DD
--source <id>a requirement source
--obligation <id>one obligation
--by-controlalso 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
OptionDescription
--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>
--sequentialone signer after another
--expires-days <n>
--remind-days <n>
--draftcreate without sending
--jsonraw JSON

ligament esign send

Send a draft

ligament esign send <id>
OptionDescription
--jsonraw JSON

ligament esign void

Withdraw an unfinished envelope

ligament esign void <id>
OptionDescription
--reason <text>shown to the signers
--jsonraw JSON

ligament esign remind

Remind the signers whose turn it is

ligament esign remind <id>
OptionDescription
--jsonraw JSON

ligament esign status

Status, recipients and seal

ligament esign status <id>
OptionDescription
--jsonraw JSON

ligament esign list

Envelopes you may see

ligament esign list
OptionDescription
--status <status>
--jsonraw JSON

ligament esign download

Download the sealed PDF

ligament esign download <id>
OptionDescription
-o, --output <file>

ligament dev

Show how to run the local dev stack (web app + worker on the ligament engine)

ligament dev
OptionDescription
-p, --port <port>Web app port
-w, --worker-port <port>Worker port

ligament trigger

Trigger a workflow run (dev only)

ligament trigger <workflowId>
OptionDescription
-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 login

ligament workflows

List workflows in the workspace with their run counts and last status

ligament workflows
OptionDescription
--source <source>Filter by source: code | builder | legacy
--jsonOutput raw JSON

ligament approvals

List approvals waiting on a human decision

ligament approvals
OptionDescription
-s, --status <status>pending | approved | rejected | all
-a, --assignee <email>Filter by assignee
-n, --limit <n>Number to show
--jsonOutput raw JSON

ligament approve

Approve a pending approval and resume its run

ligament approve <approvalId>
OptionDescription
-m, --note <note>Note recorded with the decision

ligament reject

Reject a pending approval and resume its run

ligament reject <approvalId>
OptionDescription
-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]
OptionDescription
-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)
--jsonOutput 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 list

ligament 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 list

ligament 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 list

ligament skills

Manage deployed skills (reusable workflow building blocks)

ligament skills list

List all deployed skills

ligament skills list

ligament rag

Manage RAG collections

ligament rag index

Index .txt and .md files from a directory into a RAG collection

ligament rag index <collection> [dir]