Skip to main content

Install

Clone all repositories in the active profile and run their install tasks.

raid install [repo] [-t <threads>]

What it does

  1. Clones all repositories concurrently (throttled by -t if set)
  2. Runs profile-level install tasks
  3. Runs each repository's install tasks in profile order

If a repository already exists at its configured path, cloning is skipped.

Options

FlagDescription
[repo]Install only the named repository (profile-level tasks are skipped)
-t, --threadsMax concurrent clone threads (default: unlimited)

Examples

Install all repositories in the active profile:

raid install

Install a single repository:

raid install api

Limit to 4 concurrent clones:

raid install -t 4

Install tasks

Install tasks are defined in the profile and in individual repository raid.yaml files. See Profile Configuration for the full format.

profile.yaml
install:
tasks:
- type: Print
message: "Running global setup..."
- type: Shell
cmd: "brew bundle --file=~/Brewfile"

repositories:
- name: "api"
url: "[email protected]:my-org/api.git"
path: "~/dev/api"
install:
tasks:
- type: Shell
cmd: "npm install"