CLI Reference

Complete reference for the squads command-line tool.

npm install -g squads

squads add <sources...>

Install squads into your project from multiple sources simultaneously — GitHub repositories, local directories, or the squads.sh registry. Squads are downloaded, validated, and placed in your project's squads directory.

Usage
squads add <sources...> [options]
Options
--skill <name>Specify which squad to install when repo has multiple squads
-a, --agent <name>Install a specific agent from the squad
-g, --globalInstall globally instead of in the current project
-y, --yesSkip confirmation prompts
--aios <mode>AIOS integration mode: new (create project) or existing (use current)
--aios-path <path>Path to the AIOS project (for existing mode)
Examples

Install from GitHub

squads add owner/repo

Install from local directory

squads add ./my-squad

Install from registry

squads add design-system

Install multiple squads at once

squads add slug1 slug2 slug3

Install into a new AIOS project

squads add my-squad --aios new

Install into an existing AIOS project

squads add my-squad --aios existing

Install a specific agent

squads add my-squad --agent designer

squads find [query]

Search the marketplace for squads by keyword. Returns a list of matching squads with install counts and ratings.

Usage
squads find [query] [options]
Options
-l, --limit <n>Maximum number of results (default: 20)
Examples

Search by keyword

squads find "design system"

List all squads

squads find

squads list (ls)

List all squads installed in the current project. Shows name, version, agent count, and installation path.

Usage
squads list [options]
Options
-g, --globalList globally installed squads
Examples

List installed squads

squads list

List globally installed squads

squads list --global

squads check

Validate all installed squads. Checks for structural integrity, missing files, and broken cross-references.

Usage
squads check
Examples

Check installed squads

squads check

squads update [squad]

Update one or all installed squads to their latest version. Without a squad name, updates all squads.

Usage
squads update [squad] [options]
Options
-y, --yesSkip confirmation prompts
Examples

Update all squads

squads update

Update a specific squad

squads update design-system-squad

squads remove (rm) <squad>

Remove an installed squad from your project. Cleans up the squad directory and any synced slash commands.

Usage
squads remove <squad> [options]
Options
-y, --yesSkip confirmation prompts
Examples

Remove a squad

squads remove old-squad

Remove without confirmation

squads remove old-squad -y

squads init [name]

Initialize a new squad project with scaffolding. Creates the directory structure, squad.yaml, and starter agent/task/workflow files.

Usage
squads init [name] [options]
Options
-y, --yesSkip confirmation prompts and use defaults
Examples

Create a new squad

squads init my-squad

Create with defaults

squads init my-squad -y

squads validate [path]

Run deep validation on a squad directory. Checks 6 weighted categories (manifest, structure, agents, tasks, workflows, cross-references) and produces a score from 0 to 100.

Usage
squads validate [path] [options]
Options
--jsonOutput raw JSON report
--fixAuto-fix common issues before validating
Examples

Validate current directory

squads validate

Validate a specific squad

squads validate ./squads/my-squad

JSON output

squads validate --json

Auto-fix then validate

squads validate --fix

squads fix [path]

Auto-fix common validation issues in a squad. Fixes frontmatter format, archetypes, types, tone, and greeting levels. Use --dry-run to preview changes without modifying files.

Usage
squads fix [path] [options]
Options
--dry-runShow what would be fixed without modifying files
Examples

Auto-fix current squad

squads fix

Fix a specific squad

squads fix ./squads/my-squad

Preview fixes

squads fix --dry-run

squads publish [squad-name]

Publish squads to the squads.sh marketplace. Select multiple squads at once and choose target repository.

Usage
squads publish [squad-name] [options]
Options
--dry-runValidate without actually publishing
--strictFail if validation status is not SAFE
--price <cents>Set price in cents (e.g., 2990 for $29.90, 0 for free)
Examples

Multi-select from local squads

squads publish

Publish a squad by name

squads publish my-squad

Publish from a specific path

squads publish ./squads/my-squad

Dry run to validate before publishing

squads publish --dry-run

Strict mode (requires SAFE status)

squads publish my-squad --strict

Publish with price ($29.90)

squads publish --price 2990

Publish as free

squads publish --price 0

squads login

Authenticate with squads.sh using GitHub device flow. Required before publishing squads.

Usage
squads login
Examples

Authenticate via GitHub

squads login
CLI Reference — SQUADS