Audience: app developers integrating Lattice UI in project repositories.
The lattice CLI is the recommended way to scaffold and maintain Lattice dependencies.
It supports both interactive flows and explicit non-interactive runs, and the current docs track the
unreleased init workflow on main.
What the CLI Covers
create: scaffold a new rbxts-based projectinit: bootstrap Lattice inside an existing project with safe template mergingadd: install components by name and/or presetremove: remove selected component packagesupgrade: update installed@lattice-ui/*packagesdoctor: validate lockfiles, peers, providers, and registry alignment
Execution Modes
Global CLI
npm i -g ${latticeSnapshot.cli.packageName}
lattice --help
Monorepo Local Script
Monorepo local script
Run CLI commands through your package manager wrapper when using local dependencies.
pnpm lattice --helpThe published package currently exposes these binaries:
latticelattice-ui
Learn the Workflow
- Full command signatures: CLI Commands
- Registry component names and presets: Components and Presets
- Interactive and output model: Execution and Output
- Failure recovery patterns: Troubleshooting