Skip to main content

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:
Quoting Required: When using commas, wrap the entire value in quotes to prevent shell interpretation.

Batch with Directory Target

Install all components to a specific project:

Batch with Auto-Confirm

Skip all prompts using --yes:
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)

You’ll be prompted once for where to install ALL settings and hooks:

Method 2: Auto with —yes

Automatically installs to local settings (.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

No Automatic Rollback: If a component fails, previously installed components are NOT automatically removed. This is intentional to prevent data loss.
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:
See Workflows Guide for details.

Troubleshooting

Command Too Long

If your batch command is very long: Solution 1: Use a Script
Solution 2: Use Workflow Hashes Create a workflow at aitmpl.com/workflows and use the short hash:

Permission Issues

If batch install fails on specific components:
Solution: Install settings to user directory:

Network Timeouts

Large batch installs may timeout:
Solution: Split into smaller batches:

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