CLI commands
CLI commands
Section titled “CLI commands”Agents Pack CLI 0.3.0. Invoke the binary as agents-pack.
agents-pack <command> [options]agents-pack --versionagents-pack --helpRun agents-pack <command> --help for command-specific help. Content-changing commands support --dry-run (print the plan without writing) and, where noted, --yes (apply without interactive confirmation).
For workflows and day-to-day usage, see Initialize, Manage MCP servers, Install and remove components, Create user components, Fork and customize, Update, pin, and rollback, and Eject and uninstall.
Global flags
Section titled “Global flags”--version
Section titled “--version”Print the CLI version and exit.
agents-pack --version--help
Section titled “--help”Print general help: usage, the command list, and a pointer to per-command help.
agents-pack --helpCommands
Section titled “Commands”| Command | Summary |
|---|---|
init |
Initialize Agents Pack in global or repository scope. |
status |
Inspect the current Agents Pack installation. |
list |
List installed and available components. |
install |
Install a component from the current pack. |
remove |
Remove an optional component. |
create |
Create a canonical user-owned skill or subagent. |
fork |
Copy an official component into user ownership. |
sync |
Render user-owned components for selected agents. |
update |
Preview or apply a content-pack update. |
pin |
Keep the currently installed pack version. |
unpin |
Allow forward content-pack updates again. |
rollback |
Restore an older pack version from the local cache. |
eject |
Remove managed Agents Pack content safely. |
mcp |
Manage user-level remote MCP servers across coding agents. |
Initialize Agents Pack in global or repository scope.
agents-pack init --scope <repository|global> --agents <list> --components <choice> [--pack <path>] [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--scope <scope> |
Install in repository or global scope. |
--agents <list> |
Comma-separated claude, codex, cursor selection, or all. |
--components <choice> |
recommended, all, or comma-separated component IDs. |
--pack <path> |
Use a local content-pack directory instead of the official pack. |
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
- Interactive use may omit
--scope,--agents, and--components. Non-interactive use must provide them together with--yes(or use--dry-runonly). --agents allis shorthand for--agents claude,codex,cursor.- Recommended interactive setup offers an additional optional-category picker. Custom selects categories or individual components, including skills, subagents, and instructions.
- Passing
--componentsexplicitly skips those menus. - Required components are always included when you pass explicit IDs.
--packrecords a local installation source; that installation never silently switches to the public registry.- Global scope does not support Cursor. See Platforms and agents.
- Only one active scope is supported at a time. See Repository vs global.
Examples
Section titled “Examples”agents-pack init \ --scope repository \ --agents claude,codex,cursor \ --components recommended \ --dry-run
agents-pack init \ --scope repository \ --agents all \ --components recommended \ --yesstatus
Section titled “status”Inspect the current Agents Pack installation.
agents-pack statusStatus is always read-only, including when recovery is required. It accepts no options.
Typical report contents:
- repository or global scope
- pack ID and version
- official or local source
- pin state
- selected agents
- official and user-owned component names
- managed outputs as clean, missing, modified, or malformed
- warnings such as unsynchronized user-owned source
If a previous mutation was interrupted, status reports that recovery is required but does not modify anything. Rerun the interrupted mutating command to recover safely.
List installed and available components.
agents-pack list [--installed|--available] [--kind <kind>]Options
Section titled “Options”| Option | Description |
|---|---|
--installed |
Show only selected components. |
--available |
Show only unselected components. |
--kind <kind> |
Filter by instruction, skill, or subagent. |
--installed and --available cannot be combined. User-owned components appear in installed listings with a user-owned label.
Examples
Section titled “Examples”agents-pack listagents-pack list --installedagents-pack list --availableagents-pack list --kind skillagents-pack list --available --kind subagentinstall
Section titled “install”Install a component from the current pack.
agents-pack install <component-id> [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
Accepts exactly one official component ID. Uses the exact installed pack from the local cache; does not contact the registry. Repeating an install that is already satisfied is a safe no-op.
Examples
Section titled “Examples”agents-pack install ap-frontend-design --dry-runagents-pack install ap-frontend-design --yesSee Install and remove components.
remove
Section titled “remove”Remove an optional component.
agents-pack remove <component-id> [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
Accepts exactly one official component ID. Required components cannot be removed. Uses the exact installed pack from the local cache. Repeating a remove that is already satisfied is a safe no-op.
Examples
Section titled “Examples”agents-pack remove ap-frontend-design --dry-runagents-pack remove ap-frontend-design --yescreate
Section titled “create”Create a canonical user-owned skill or subagent.
agents-pack create skill <name> --description <text> [--yes] [--dry-run]agents-pack create subagent <name> --description <text> [--write] [--yes] [--dry-run]The canonical source is created under .agents-pack/user (repository) or ~/.agents-pack/user (global). Edit that source, then run sync to regenerate provider copies.
Options
Section titled “Options”| Option | Description |
|---|---|
--description <text> |
Explain what the component does and when to use it. |
--write |
Give a subagent workspace-write access; default is read-only. Valid only for subagents. |
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
- Names cannot use the reserved
ap-prefix. - Interactive use can prompt for a missing description. Non-interactive use requires
--description. - New subagents are read-only unless you pass
--write.
Examples
Section titled “Examples”agents-pack create skill deploy-app \ --description "Deploy this application safely. Use for staging or production deployment." \ --yes
agents-pack create subagent release-checker \ --description "Review release correctness and operational risk. Use before deployment." \ --yes
agents-pack create subagent api-implementer \ --description "Implement approved API changes. Use after an API plan is accepted." \ --write \ --yesSee Create user components and File layout.
Copy an official component into user ownership.
agents-pack fork <official-component> --name <user-name> [--yes] [--dry-run]The new name cannot use the reserved ap- prefix. Only official skills and subagents can be forked. Official instruction components cannot be forked.
Options
Section titled “Options”| Option | Description |
|---|---|
--name <name> |
Name for the user-owned copy. |
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
Forking copies the exact installed official source, records a separate user-owned component, and renders it for every selected agent. Future official updates do not overwrite your copy. The original official component stays installed unless you remove it separately.
Examples
Section titled “Examples”agents-pack fork ap-debug --name my-debug --dry-runagents-pack fork ap-debug --name my-debug --yesSee Fork and customize.
Render user-owned components for selected agents.
agents-pack sync [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the plan without writing. |
Requires at least one canonical user-owned component. Edit under .agents-pack/user/ or ~/.agents-pack/user/, then sync. Direct edits to generated provider copies are treated as drift and block synchronization.
Examples
Section titled “Examples”agents-pack sync --dry-runagents-pack sync --yesagents-pack statusupdate
Section titled “update”Preview or apply a content-pack update. This updates instructions, skills, subagents, and pack release notes — not the CLI executable. To upgrade the CLI, rerun the installer.
agents-pack update --check [--pack <path>]agents-pack update [--pack <path>] [--add <id,id>] [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--pack <path> |
Use a local candidate instead of the official registry. |
--check |
Show versions, release notes, and newly introduced compatible components without writing. |
--add <id,id> |
Add compatible component IDs while updating, preserving existing selections and skipping the picker. |
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the update plan without writing. |
--checkcannot be combined with--yes,--dry-run, or--add.- Official installations use the registry by default. Local installations require
--pack. - Interactive updates offer new compatible components by category or individually. Existing choices are preserved; nothing optional is preselected.
--yesskips the picker and adds no non-required components unless selected with--add.--checkand--dry-runnever open the picker.--addalso accepts previously declined components already in the candidate pack. The update and additions apply together in one transaction.- User-owned canonical content is not part of the official update.
- A pinned installation can still run
--check, but applying a different pack version stops until youunpin.
Examples
Section titled “Examples”agents-pack update --checkagents-pack update --dry-runagents-pack updateagents-pack update --add ap-design-studio,ap-design-critic --yes
agents-pack update --check --pack /path/to/new-local-packagents-pack update --pack /path/to/new-local-pack --yesSee Update, pin, and rollback.
Keep the currently installed pack version.
agents-pack pinAccepts no options. Takes effect immediately. Idempotent. Still validates that managed outputs are clean.
A pinned installation can still check for updates, install available components, and remove optional components. Applying a different pack version stops until you unpin.
Allow forward content-pack updates again.
agents-pack unpinAccepts no options. Takes effect immediately. Idempotent. Still validates that managed outputs are clean.
rollback
Section titled “rollback”Restore an older pack version from the local cache.
agents-pack rollback [version] [--yes] [--dry-run]Without a version, rollback chooses the newest cached version older than the installed version. A successful rollback pins that version.
Options
Section titled “Options”| Option | Description |
|---|---|
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the rollback plan without writing. |
- Rollback only uses previously cached packs with the same pack ID. It never downloads a missing historical version.
- User-owned canonical content is preserved.
- Run
unpinwhen you are ready to move forward again.
Examples
Section titled “Examples”agents-pack rollback --dry-runagents-pack rollback --yesagents-pack rollback 0.24.0 --dry-runagents-pack rollback 0.24.0 --yesRemove managed Agents Pack content safely.
agents-pack eject [--yes] [--dry-run]Options
Section titled “Options”| Option | Description |
|---|---|
--yes |
Apply without an interactive confirmation. |
--dry-run |
Print the removal plan without writing. |
Eject removes:
- official generated provider files and managed blocks
- user-generated provider copies
- the official installation configuration and lock
- the user-generated output lock
Eject preserves canonical user-owned source under .agents-pack/user/ or ~/.agents-pack/user/. It refuses to delete modified, missing, or malformed managed content.
Removing the CLI binary is separate; see Eject and uninstall.
Examples
Section titled “Examples”agents-pack eject --dry-runagents-pack eject --yesAdd, inspect, or remove user-level remote MCP servers across Claude Code,
Codex, and Cursor. This machine-level workflow is independent of
agents-pack init and repository or global content scope.
agents-pack mcp add <name> \ --url <http-or-https-url> \ [--agents <claude,codex,cursor|all>] \ [--yes] \ [--dry-run]
agents-pack mcp status [name]agents-pack mcp remove <name> [--yes] [--dry-run]Options
Section titled “Options”| Option | Applies to | Description |
|---|---|---|
--url <url> |
add |
Remote HTTP or HTTPS MCP endpoint. |
--agents <list> |
add |
Comma-separated provider selection, or all. Defaults to all three providers. |
--yes |
add, remove |
Apply without interactive confirmation. |
--dry-run |
add, remove |
Print the cross-provider plan without writing. |
- The first release supports remote HTTP endpoints, including Streamable HTTP. It does not support local stdio servers or deprecated remote SSE configuration.
statusis always read-only. It reports clean, missing, drifted, unmanaged, malformed, and unavailable provider state.- Authentication remains provider-specific and is never stored in the Agents Pack MCP lock.
removeacts only on entries previously added by Agents Pack and targets their original provider selection.- Unmanaged entries and provider drift block mutation instead of being adopted, overwritten, or deleted.
Examples
Section titled “Examples”agents-pack mcp add docs \ --url https://example.com/mcp \ --dry-run
agents-pack mcp add docs \ --url https://example.com/mcp \ --yes
agents-pack mcp status docsagents-pack mcp remove docs --dry-runagents-pack mcp remove docs --yesSee Manage MCP servers for the full workflow, including provider-specific authentication.