CLI Reference
Complete reference for all Archyra command-line interface commands and options.
Quick Reference
npx archyra initInteractive setup wizard
Launches an interactive prompt to select your AI coding tool and automatically configures the MCP server.
npx archyra init --client <tool>Direct setup for a specific tool
Skip the interactive prompt and directly configure for a specific tool. Valid options: claude, cursor, windsurf.
npx archyra serveStart the MCP server manually
Starts the MCP server directly. Useful for testing or when running manually instead of through npx.
npx archyra --helpShow help information
Displays all available commands and options.
init Command
The init command configures the MCP server for your AI coding tool.
| Option | Description | Values |
|---|---|---|
| --client <tool> | Specify the AI tool to configure | claude, cursor, windsurf |
| --force | Overwrite existing configuration | flag |
| --help | Show help for init command | flag |
Examples
Interactive setup (recommended for first-time users):
npx archyra initConfigure for Claude Code:
npx archyra init --client claudeConfigure for Cursor:
npx archyra init --client cursorConfigure for Windsurf:
npx archyra init --client windsurfserve Command
The serve command starts the MCP server. This is typically called automatically by your AI tool, but can be run manually for testing.
Usage
npx archyra serveNote: When running manually, the server communicates via stdio. This is mainly useful for debugging. In normal usage, your AI tool will start the server automatically.
MCP Tools Reference
Once the MCP server is running, these tools are available to your AI assistant:
| Parameter | Type | Description |
|---|---|---|
| category | string (optional) | Filter by category: all, loading, processing, creative, auth, chat, ecommerce |
| Parameter | Type | Description |
|---|---|---|
| name | string (required) | Component name (e.g., "LoadingDots", "AiCreating2") |
| Parameter | Type | Description |
|---|---|---|
| name | string (required) | Component name to add |
| directory | string (optional) | Target directory (default: "components") |
| Parameter | Type | Description |
|---|---|---|
| name | string (required) | Component name |
Example AI Prompts
Here are some example prompts you can use with your AI assistant:
"List all archyra components"
"Show me loading indicator options"
"Get the source code for AuthPage"
"Add LoadingDots to my components folder"
"What dependencies does FloatingLogin need?"
"Show me all e-commerce components"
Environment Variables
| Variable | Description | Default |
|---|---|---|
| DEBUG | Enable debug logging | false |