install
Install all configured artifacts to their target directories.
Usage
agpm install
Also available as agpm sync.
What Happens
- Reads your
agpm.jsonconfiguration and configured targets - Resolves refs to SHAs (uses lock file if present)
- Caches repo at SHA to
~/.agpm/cache/<sha>/ - Computes integrity hash (SHA256 of file contents)
- Copies artifacts to enabled target directories only
Target Directories
Artifacts are installed only to targets explicitly configured in agpm.json:
| Target | Skills Directory |
|---|---|
claude-code | .claude/skills/<name>/ |
opencode | .opencode/skills/<name>/ |
codex | .codex/skills/<name>/ |
Lock File
When agpm-lock.json exists, install uses the pinned SHAs for reproducible installs. This ensures all team members get the exact same artifact versions.
Examples
Basic install:
agpm install
After adding new artifacts:
agpm add anthropics/skills pdfagpm install
See Also
- update - Update artifacts to latest versions
- Configuration - Configure agpm.json
- Targets - Learn about installation targets