setup Command
What It’s For
Section titled “What It’s For”Bootstrap development environments consistently across repositories.
What It Does
Section titled “What It Does”- Runs repository setup scripts in workspace order.
- Supports targeting selected repositories with
--only. - Reports skipped repositories and setup failures in a final summary.
aw setup [options]Key Options
Section titled “Key Options”-o, --only <repo>run setup for repositories; repeat it, use commas, or mix both forms.-g, --group <group>run setup for groups; repeat it, use commas, or mix both forms.-v, --verboseprint full setup script output.-j, --jsonoutput machine-readable setup results.
Examples
Section titled “Examples”# Run setup across all repositoriesaw setup
# Run setup for selected repositoriesaw setup --only api --only web
# Run setup for extension repositoriesaw setup --group extensions
# Show full script output while setup runsaw setup --verbose
# Run setup for one repo and emit JSONaw setup --only api --json- Setup targets without scripts are reported as skipped.
--grouptargets configured semantic sets; with--only, it narrows the explicit repository selection by intersection.- Failed or timed-out setup runs return a non-zero exit code.
- In JSON mode, stdout contains one result document; setup script diagnostics are captured or kept off stdout.
Related Commands
Section titled “Related Commands”setup depends on configured repositories and setup scripts, so it requires configured mode. From standalone mode, run ordinary aw init to upgrade; see the One Repository.
A setup script is not a lifecycle hook and does not receive the create/remove terminal-input contract. See the Lifecycle Hooks reference when automation belongs at a lifecycle boundary instead.