starwind_add
Generates the correct CLI command to install Starwind UI components, validates component names, and auto-detects package manager.
Instructions
Generates the installation command for Starwind UI components. Validates component names and returns the correct CLI command based on the detected package manager. Use this after consulting starwind_docs to know which components to install. For Starwind Pro blocks (prefixed with @starwind-pro/), set pro=true or the tool will auto-detect it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for package manager detection. Defaults to current directory. | |
| pro | No | Set to true for Starwind Pro projects. This adds --pro to the init command. Required when using @starwind-pro/ blocks. Auto-detected if components contain @starwind-pro/ prefix. | |
| init | No | Whether to include the init command for new projects. Set to true if Starwind UI has not been initialized in the project yet. | |
| components | Yes | Array of component names to install (e.g., ['button', 'card', 'dialog']). Use '--all' as a single item to install all components. | |
| packageManager | No | Override the auto-detected package manager. Use this if package manager detection fails or you want to force a specific one. |