CLI guide
The lattice CLI uses the same core formats and semantic command model as the
desktop app.
Create and inspect a workspace
Section titled “Create and inspect a workspace”lattice init ~/Work/Research --title "Research" --template researchcd ~/Work/Researchlattice infolattice lslattice validateRun lattice templates list to see current template IDs.
Work with pages
Section titled “Work with pages”lattice page create Notes/Idea.md --content "# Idea"printf '# Revised idea\n' | lattice page update Notes/Idea.md --stdinlattice search "revised idea"lattice backlinks Notes/Idea.mdWork with tables and records
Section titled “Work with tables and records”lattice table create CRM.data --title "CRM" --table contactslattice table import --csv contacts.csv --name CRM --table contactslattice table show CRM.datalattice table view list CRM.dataUse lattice record --help for insert, update, and delete operations. Mutations
are journaled so compatible operations appear in lattice history and can be
undone.
Work with analytical data
Section titled “Work with analytical data”lattice dataset create Data/Events.dataset --title "Events"lattice dataset import-csv Data/Events.dataset --csv events.csvlattice dataset show Data/Events.datasetlattice query --engine duckdb --sql "select count(*) from read_parquet('Data/Events.dataset/facts/**/*.parquet')"Maintain the workspace
Section titled “Maintain the workspace”lattice indexlattice history --limit 30lattice undolattice redolattice recover --helpAdd --json where supported when another program should consume the result.
Use lattice <command> --help for exact arguments in your installed build.