Command Reference¶
All command examples use the LazyAI CLI binary, lazyai-cli.
init¶
Initialize a new managed AI setup.
| Flag | Type | Default | Description |
|---|---|---|---|
--scope |
project \| global \| workspace |
prompt | Setup scope |
--planning-repo |
path | — | Planning repo for workspace scope |
--repos |
comma-separated | — | Workspace repo references |
--tools |
comma-separated | prompt | opencode,claude-code,copilot |
--cli-tools |
comma-separated | — | Locally installed CLI tools |
--name |
string | dir-derived | Project or workspace name |
--force |
boolean | false |
Overwrite managed files |
--no-interactive |
boolean | false |
Disable prompts |
--migrate |
boolean | false |
Detect and import existing setup |
--from |
path | current | Source path for migration |
--absorb |
boolean | prompt/false |
Absorb detected config into .ai/ |
--dry-run |
boolean | false |
Preview without writing |
--preset |
minimal \| standard \| full \| custom |
wizard | Feature preset |
--features |
comma-separated | — | Explicitly enable features |
--disable-features |
comma-separated | — | Disable features; all to start from nothing |
--branch-pattern |
string | {type}/{ticket}-{description} |
Branch naming pattern |
--commit-pattern |
string | {type}({scope}): {description} |
Commit message pattern |
--enable-servers |
comma-separated | — | Enable optional MCP servers |
--install-mode |
copy \| symlink |
copy |
How library files are installed |
Examples
lazyai-cli init
lazyai-cli init --scope project --tools opencode,claude-code --name my-repo --no-interactive
lazyai-cli init --scope workspace --planning-repo ./planning --repos ../api,../web --no-interactive
lazyai-cli init --migrate --from ../legacy-project
compile¶
Recompile canonical content into tool-native directories.
| Flag | Type | Default | Description |
|---|---|---|---|
--scope |
project \| global \| workspace |
manifest scope | Override scope |
--tools |
comma-separated | manifest tools | Compile only selected tools |
--force |
boolean | false |
Overwrite existing files |
--dry-run |
boolean | false |
Preview without writing |
--planning-repo |
path | manifest | Workspace planning repo |
Examples
lazyai-cli compile
lazyai-cli compile --tools opencode,claude-code
lazyai-cli compile --scope global
add¶
Add another tool adapter to an existing setup.
| Argument | Description |
|---|---|
tool |
opencode, claude-code, or copilot |
Example
update¶
Refresh tracked files from the bundled library.
| Flag | Type | Default | Description |
|---|---|---|---|
--force |
boolean | false |
Overwrite with backup |
--check |
boolean | false |
Preview which skills would be updated |
Examples
doctor¶
Verify setup health and detect drift.
| Flag | Type | Default | Description |
|---|---|---|---|
--migration-check |
boolean | false |
Compare to a clean LazyAI state |
--verbose |
boolean | false |
Detailed output |
--json |
boolean | false |
Emit JSON |
--skills-check |
boolean | false |
Compare installed skills to library source |
Examples
status¶
Print setup summary: scope, tools, features, git conventions, file health.
create¶
Scaffold a new artifact: agent, skill, command, prompt, template, workflow, domain, or mode.
| Flag | Default | Description |
|---|---|---|
--name |
prompt | Artifact name |
--description |
— | Artifact description |
--force |
false |
Overwrite existing files |
--no-interactive |
false |
Disable prompts |
Subcommand flags
create agent:--model,--mode,--toolscreate skill:--command,--stepscreate command:--arguments,--flags-descriptioncreate prompt:--task-context,--output-formatcreate template:--sections,--fieldscreate workflow:--chain,--team,--steps,--stepcreate domain: no extra flagscreate mode: no extra flags
Examples
lazyai-cli create agent --name release-manager
lazyai-cli create skill deploy --command /deploy --steps "validate\nbuild\nship"
lazyai-cli create workflow release --chain feature --team review-team --no-interactive
import / migrate¶
Detect and import an existing AI setup into LazyAI canonical format.
| Flag | Default | Description |
|---|---|---|
--preview, -p |
false |
Show migration plan without applying |
--strategy, -s |
smart |
smart, preserve, replace, append |
--verbose, -v |
false |
Detailed output |
--interactive, -i |
false |
Resolve conflicts interactively |
--skip-backup |
false |
Skip backup creation |
--yes, -y |
false |
Auto-confirm |
--no-canonical |
false |
Use legacy output (migrate only) |
Examples
lazyai-cli import --preview
lazyai-cli import ../legacy-project --strategy preserve --yes
lazyai-cli migrate ../legacy-project --no-canonical
eject¶
Stop managing the current setup. Removes .ai-setup.json while leaving generated files in place.
list¶
List bundled library content.
Categories: agents, skills, templates, rules, servers/mcp, tools/cli, workflows, chains, teams, domains, modes, orchestration, all
Examples
info¶
Show detailed information about a library item.
Examples
orchestration¶
Orchestration-focused commands.
lazyai-cli orchestration list [kind] [--json]
lazyai-cli orchestration create <type> <name> [options]
lazyai-cli orchestration status [--json]
Kinds: workflows, chains, teams, domains, modes
Examples
lazyai-cli orchestration list workflows --json
lazyai-cli orchestration create domain payments --description "Payments domain" --no-interactive
lazyai-cli orchestration status
completions¶
Print a shell completion script.
Example
extensions / ext¶
List discovered LazyAI extensions.
update-self¶
Download the latest lazyai-cli binary from GitHub Releases and replace the running binary.
| Flag | Description |
|---|---|
--check |
See if a newer release exists |
--dry-run |
Preview without applying |
--force |
Upgrade even if already on latest |
Example