CLI Overview

The Trellis command-line interface — your primary operational surface for repository management and automation.

Installation

npm install -g trellis
trellis -h

Philosophy

The CLI is the fastest way to initialize repos, inspect history, create milestones, diff/merge work, and script automation around the op stream. It exposes the shipped repository, graph, query, and local Studio surfaces; agent harness and standalone MCP commands are tracked on the roadmap until they ship as CLI entry points.

Common Options

trellis --help              # Show top-level help
trellis --version           # Show version
trellis status -p <dir>     # Most repo commands accept -p/--path

Command Groups

GroupPurpose
Setupinit, seed, repair, import, export
Workingstatus, log, files, watch, branch
Historymilestone, checkpoint
Diffdiff, merge, parse, sdiff
Identityidentity
Gardengarden list, garden search, garden revive
Issuesissue create, issue start, issue close, …
Refsrefs, refs --backlinks
Syncsync status, sync reconcile
Entityentity create, entity get, entity list
Queryquery, ask, search, db query
Studiostudio (launch Trellis Studio)
Databasedb init, db serve, db deploy
Systemontology

See the full command reference for details on every command.