Batch Component Installation
Batch installation allows you to install multiple components across different types in a single command. This is ideal for setting up new projects, sharing team configurations, or deploying standardized development environments.Why Batch Install?
Speed
Install 10 components in one command instead of running 10 separate commands
Consistency
Ensure all team members have the same components installed
Automation
Script entire project setups in CI/CD pipelines
Discovery
Share component bundles with colleagues via single command
Basic Batch Installation
Combine multiple component flags in a single command:Flag Order: Component flags can appear in any order. The CLI installs them sequentially.
Multi-Type Installation
Comma-Separated Values
You can use comma-separated values for the same component type:Batch with Directory Target
Install all components to a specific project:Batch with Auto-Confirm
Skip all prompts using--yes:
What does --yes do?
What does --yes do?
The
--yes flag:- Uses default installation locations for settings/hooks (local settings)
- Auto-confirms all merge operations
- Skips interactive prompts
- Ideal for CI/CD and scripted installations
Settings and Hooks Location
When batch installing settings or hooks, you can pre-specify the installation location:Method 1: Interactive (Default)
Method 2: Auto with —yes
.claude/settings.local.json).
Use Cases
New Project Setup
Complete development environment in one command:Team Standardization
Ensure all team members have consistent tooling:CI/CD Pipeline
Script component installation in your CI pipeline:Docker Container Setup
Include in your Dockerfile:Component Discovery for Batch Installation
Batch Installation Output
The CLI provides detailed progress for batch installations:Error Handling
Batch installations handle errors gracefully:Partial Success
If one component fails, others continue:Rollback Not Supported
To undo:Best Practices
1. Group by Purpose
Organize batch commands by project type:2. Document in README
Add setup instructions to your project:3. Use Version Pinning
For reproducibility, pin to a specific version:4. Separate Concerns
Split personal vs. team components:Combining with Workflows
You can combine batch installation with workflow YAML:Troubleshooting
Command Too Long
If your batch command is very long: Solution 1: Use a ScriptPermission Issues
If batch install fails on specific components:Network Timeouts
Large batch installs may timeout:Next Steps
Interactive Mode
Use the visual component selector
Workflows
Create reusable installation workflows
Global Agents
Create globally accessible agents
Component Browser
Browse all available components