Commands¶
Complete reference for all ai-config commands.
Overview¶
| Command | What it does |
|---|---|
init |
Interactive config generator |
sync |
Install/uninstall plugins to match config |
status |
Show what's currently installed |
watch |
Auto-sync on file changes |
update |
Update plugins to latest versions |
doctor |
Validate setup and show fix hints |
convert |
Convert plugins to other AI tools |
plugin create |
Scaffold a new plugin |
cache clear |
Clear the plugin cache |
Global Options¶
ai-config [OPTIONS] COMMAND
Options:
-c, --config PATH Path to config file
--version Show version
--help Show help message
init¶
Interactive wizard for creating or updating your config file.
Options:
| Option | Description |
|---|---|
-o, --output PATH |
Output path for the config file |
--non-interactive |
Create minimal config without prompts |
The wizard walks you through:
- Adding marketplaces (GitHub repos or local directories with plugins)
- Selecting plugins from those marketplaces
- Choosing install scope (user or project)
Creates .ai-config/config.yaml in the current directory (or the path specified with -o).
sync¶
Make installed plugins match your config file.
Options:
| Option | Description |
|---|---|
-c, --config PATH |
Path to config file |
--dry-run |
Show what would change without doing it |
--fresh, --force |
Full rebuild: clear cache + reconvert everything |
--force-convert |
Reconvert only (without clearing plugin cache) |
--verify |
Verify sync state after completion |
What it does:
- Installs plugins listed in config but not installed
- Uninstalls plugins installed but not in config
- Updates plugin configurations
- Runs conversion if
conversionsection is configured (see Conversion)
Exits non-zero if any target had errors.
status¶
Show current state of marketplaces and plugins.
Options:
| Option | Description |
|---|---|
-c, --config PATH |
Path to config file |
--verify |
Verify current state matches config |
--json |
Output as JSON |
Displays:
- Configured marketplaces and their status
- Installed plugins (from config and extra)
- Any sync issues
watch¶
Auto-sync when config or plugin files change.
Options:
| Option | Description |
|---|---|
-c, --config PATH |
Path to config file |
--debounce SECONDS |
Wait time before syncing (default: 1.5) |
--dry-run |
Show changes without syncing |
-v, --verbose |
Show all file events |
Useful during plugin development. Watches:
.ai-config/config.yaml- Plugin directories
Press Ctrl+C to stop.
Claude Code reload required
Claude Code only loads plugins at session start. After watch syncs your changes, you must restart Claude Code for them to take effect.
To continue your previous session after restarting:
update¶
Update plugins to their latest versions.
Options:
| Option | Description |
|---|---|
--all |
Update all plugins |
--fresh |
Clear cache before updating |
Arguments:
| Argument | Description |
|---|---|
PLUGINS |
Specific plugin IDs to update (positional, space-separated) |
You must specify either --all or one or more plugin names.
doctor¶
Validate your setup and find problems.
Options:
| Option | Description |
|---|---|
-c, --config PATH |
Path to config file |
--category CATEGORY |
Run only specific validation categories (can be repeated) |
-t, --target TARGET |
Validate converted output: codex, cursor, opencode, pi, or all |
--json |
Output as JSON |
-v, --verbose |
Show all checks including passed |
Arguments (target mode only):
| Argument | Description |
|---|---|
OUTPUT_DIR |
Directory containing converted output (default: current dir) |
Default mode¶
Checks:
- Marketplace URLs are reachable
- Plugins are properly installed
- Skills have required fields
- Hooks are executable
- MCP server configs are valid
Target validation mode¶
When --target is specified, validates converted output instead of plugin config:
Checks target-specific output directory structure, SKILL.md files, MCP/hooks/LSP config validity.
convert¶
Convert a Claude Code plugin to other AI coding tools.
Options:
| Option | Description |
|---|---|
-t, --target TARGET |
Target tool(s): codex, cursor, opencode, pi, all (default: all) |
-o, --output DIR |
Output directory (default: based on --scope) |
--scope SCOPE |
user or project — controls default output path |
--dry-run |
Preview changes without writing files |
--best-effort |
Continue even if some components fail to convert |
--format FORMAT |
Console output: summary, markdown, or json |
--report PATH |
Write conversion report to a file |
--report-format FORMAT |
Report file format: json (default) or markdown |
--commands-as-skills |
Convert commands to skills instead of prompts (Codex) |
Arguments:
| Argument | Description |
|---|---|
PLUGIN_PATH |
Path to the Claude Code plugin directory to convert |
Supported targets:
- codex — OpenAI Codex (
.codex/skills/plus.codex/config.toml, prompts, and hooks) - cursor — Cursor (
.cursor/dir with skills, commands, hooks, and MCP config) - opencode — OpenCode (
opencode.json+.opencode/skills dir) - pi — Pi (
.pi/dir with skills, prompt templates, and extensions)
Multiple targets can be specified: -t codex -t cursor
See Conversion for a full guide.
plugin create¶
Scaffold a new plugin.
Options:
| Option | Description |
|---|---|
--path PATH |
Base path for plugin directory |
Creates a plugin directory with:
manifest.yaml— Plugin metadataskills/— Directory for skill fileshooks/— Directory for hook files
cache clear¶
Clear the plugin cache.
Forces fresh downloads on next sync. Use when plugins seem stale.