Global Options
--help--version
create
Command
create: Create a new project from the rbxts template.
lattice create [project-path] [--yes] [--pm <pnpm|npm|yarn>] [--git] [--template rbxts] [--lint] [--no-lint] Supported flags
-
--yes -
--pm -
--git -
--template -
--lint -
--no-lint
Behavior:
[project-path]is optional in interactive mode.- In
--yesmode,[project-path]is required. --lintand--no-lintare mutually exclusive.--templatecurrently supports onlyrbxts.- Generated projects include
lattice-uiindevDependencies.
init
Command
init: Initialize Lattice in an existing project.
lattice init [--yes] [--dry-run] [--pm <pnpm|npm|yarn>] [--template rbxts] [--lint] Supported flags
-
--yes -
--dry-run -
--pm -
--template -
--lint
Observed output phases
-
Inspecting -
Planning -
Dry Run -
Applying -
Result -
Next Steps
Behavior:
initruns only inside an existing project root that already has apackage.json.--dry-runprints planned file/package changes and does not mutate the repo.--lintopts into ESLint + Prettier during init; otherwise interactive mode asks.- Package-manager resolution uses
--pm, lockfiles, installed managers, or interactive selection.
add
Command
add: Install component packages and their required peers.
lattice add [name...] [--preset <preset...>] [--pm <pnpm|npm|yarn>] [--yes] [--dry-run] Supported flags
-
--preset -
--pm -
--yes -
--dry-run
Observed output phases
-
Selecting -
Planning -
Dry Run -
Applying -
Result -
Next Steps
Behavior:
- Without names/presets, interactive mode prompts for selection.
- With
--yes, at least one component or preset must be provided. - Adds required peers and required providers.
- Optional providers are reported in output but not auto-installed.
remove
Command
remove: Remove selected component packages.
lattice remove [name...] [--preset <preset...>] [--pm <pnpm|npm|yarn>] [--yes] [--dry-run] Supported flags
-
--preset -
--pm -
--yes -
--dry-run
Observed output phases
-
Selecting -
Result -
Next Steps -
Planning -
Dry Run -
Applying
Behavior:
- Without names/presets, interactive mode prompts from currently installed registry components.
- With
--yes, names or presets are required. - Missing requested components are skipped and summarized.
upgrade
Command
upgrade: Upgrade installed @lattice-ui/* packages.
lattice upgrade [name...] [--preset <preset...>] [--pm <pnpm|npm|yarn>] [--yes] [--dry-run] Supported flags
-
--preset -
--pm -
--yes -
--dry-run
Observed output phases
-
Selecting -
Planning -
Dry Run -
Applying -
Result -
Next Steps
Behavior:
- With no selection, interactive mode prompts from installed packages.
- With no selection and
--yes, all installed@lattice-ui/*packages are selected. - Preserves dependency intent (
dependenciesvsdevDependencies) during upgrade. - Missing requested packages are summarized and skipped.
doctor
Command
doctor: Check lockfiles, peers, and provider expectations.
lattice doctor [--pm <pnpm|npm|yarn>] Supported flags
-
--pm
Observed output phases
-
Checking -
Summary -
Warnings -
Errors -
Recommended Commands -
Result
Behavior:
- Warnings are advisory issues such as lockfile drift or optional provider gaps.
- Errors are hard-fail conditions such as missing required providers.
- Recommendations are emitted as package-manager-aware commands.
Common Failure Cases
create --yeswithout[project-path].create --lint --no-lintflag conflict.add --yesorremove --yeswithout explicit selection.initoutside a project root withpackage.json.- Unknown component or preset names.
For execution-phase details and dry-run expectations, see Execution and Output.