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. Every operation that can be done programmatically can be done from the CLI.
Global Options
trellis [command] --help # Show help for any command
trellis --version # Show version
trellis --path <dir> # Specify repo path (defaults to cwd)
Command Groups
| Group | Purpose |
|---|---|
| Setup | init, import, export, watch |
| Working | status, log, files, branch |
| History | milestone, checkpoint |
| Diff | diff, merge, parse, sdiff |
| Identity | identity |
| Garden | garden list, garden search, garden revive |
| Issues | issue create, issue start, issue close, ... |
| Sync | sync status, sync reconcile |
| Entity | entity create, entity get, entity list |
| Query | db query, ask |
| System | ontology |
See the full command reference for details on every command.