LNAI provides three commands for managing your unified AI configuration.
Initialize a new .ai/ configuration directory.
| Option | Description |
|---|
--force | Overwrite existing .ai/ directory |
--minimal | Create only config.json (no subdirectories) |
-t, --tools <tools...> | Enable only specific tools |
lnai init # Create full .ai/ structure
lnai init --minimal # Create only config.json
lnai init --tools claudeCode # Enable only Claude Code
lnai init --force # Overwrite existing config
Export the unified .ai/ configuration to native tool formats.
| Option | Description |
|---|
--dry-run | Preview changes without writing files |
-t, --tools <tools...> | Filter to specific tools |
-v, --verbose | Show detailed output |
| Symbol | Meaning |
|---|
+ | File created |
~ | File updated |
- | File deleted |
= | File unchanged |
lnai sync # Sync all enabled tools
lnai sync --dry-run # Preview changes
lnai sync --tools claudeCode # Sync only Claude Code
Validate the unified .ai/ configuration structure and content.
| Option | Description |
|---|
-t, --tools <tools...> | Filter validation to specific tools |
lnai validate # Validate all configuration
lnai validate --tools claudeCode # Validate only for Claude Code
| Identifier | Tool |
|---|
claudeCode | Claude Code |
opencode | OpenCode |