Salta ai contenuti
← Torna al sito
Soleri | Docs

CLI Reference

Questi contenuti non sono ancora disponibili nella tua lingua.

The Soleri CLI (@soleri/cli) manages agent creation, development, and maintenance.

The CLI is available via npx (no install needed) or as a dev dependency:

Terminal window
npx @soleri/cli <command>

Scaffold a new agent project.

Terminal window
npx @soleri/cli create [name]

Options:

FlagDescription
[name]Agent name (prompted if omitted)

Interactive wizard prompts for: agent name, role, domains, persona voice.

Example:

Terminal window
npx @soleri/cli create sentinel
# or use the npm create shorthand:
npm create soleri sentinel

Show agents in a directory.

Terminal window
npx @soleri/cli list [dir]

Scans for agent projects and displays ID, domains, and build status.


Run agent locally in development mode with auto-rebuild.

Terminal window
npx @soleri/cli dev

Starts the MCP server via stdio transport. Watches for file changes and restarts automatically.


Run agent test suite.

Terminal window
npx @soleri/cli test [options]

Options:

FlagDescription
--watchRe-run tests on file changes
--coverageGenerate coverage report

Runs vitest under the hood. For the monorepo-level E2E test suite, use npm run test:e2e from the project root. See Testing for full details.


Add a knowledge domain to your agent.

Terminal window
npx @soleri/cli add-domain <domain>

Creates a new domain facade with 5 ops (get_patterns, search, get_entry, capture, remove) and regenerates the agent’s facade registry.

Example:

Terminal window
npx @soleri/cli add-domain security
npx @soleri/cli add-domain infrastructure

Import a knowledge bundle into the agent’s vault.

Terminal window
npx @soleri/cli install-knowledge <path>

Accepts a directory or JSON file containing knowledge entries.

Example:

Terminal window
npx @soleri/cli install-knowledge ./bundles/react-patterns

System health check.

Terminal window
npx @soleri/cli doctor

Reports:

  • Node.js version compatibility
  • npm status
  • Agent context (detected project)
  • Vault health
  • CLAUDE.md status
  • Recommendations for fixes

Manage editor hooks for quality gates.

Terminal window
npx @soleri/cli hooks add <editor>
npx @soleri/cli hooks remove <editor>
npx @soleri/cli hooks list
npx @soleri/cli hooks add-pack <pack>

Editors: claude-code, cursor, vscode, neovim

Hook Packs:

PackHooks included
fullAll 8 quality gates
minimalCore safety hooks only

Quality gate hooks: no-console-log, no-any-types, no-important, no-inline-styles, semantic-html, focus-ring-required, ux-touch-targets, no-ai-attribution.


View or set vault governance policies.

Terminal window
npx @soleri/cli governance [options]

Options:

FlagDescription
--preset <name>Apply a preset: strict, moderate, permissive
--showDisplay current governance settings

Manage agent extensions — custom ops, facades, and middleware.

Terminal window
npx @soleri/cli extend <subcommand>

Subcommands:

SubcommandDescription
initInitialize src/extensions/ directory
add-op <name>Scaffold a custom op (snake_case, e.g. summarize_pr)
add-facade <name>Scaffold a custom facade (kebab-case, e.g. github)
add-middleware <name>Scaffold a middleware (kebab-case, e.g. audit-logger)

Examples:

Terminal window
npx @soleri/cli extend init
npx @soleri/cli extend add-op summarize_pr
npx @soleri/cli extend add-facade github
npx @soleri/cli extend add-middleware audit-logger

See Extending Your Agent for full documentation.


Register your agent as an MCP server in Claude Code.

Terminal window
npx @soleri/cli install

Adds the agent to ~/.claude.json so Claude Code discovers it on startup. Run from inside your agent directory.


Remove your agent’s MCP server registration.

Terminal window
npx @soleri/cli uninstall

Removes the entry from ~/.claude.json.


Unified pack manager for hooks, skills, knowledge, and domains.

Terminal window
npx @soleri/cli pack <subcommand> [options]

Subcommands:

SubcommandDescription
listList available packs
installInstall a pack
uninstallRemove a pack
validateValidate a pack before installing

Options:

FlagDescription
--type <type>Pack type: hooks, skills, knowledge, domains

Manage agent skills (convenience wrapper for pack --type skills).

Terminal window
npx @soleri/cli skills [subcommand]

Lists, installs, or removes skill packs for your agent.


Agent lifecycle management.

Terminal window
npx @soleri/cli agent <subcommand>

Subcommands:

SubcommandDescription
statusShow agent status and configuration
updateUpdate agent to latest engine
diffShow differences from latest scaffold

Check for and perform CLI upgrades.

Terminal window
npx @soleri/cli upgrade [options]

Options:

FlagDescription
--checkCheck for updates without installing

See Customizing Your Agent for detailed configuration guides. For API operations, see API Reference and Capabilities. If something isn’t working, check Troubleshooting.