install

Install all configured artifacts to their target directories.

Usage

agpm install

Also available as agpm sync.

What Happens

  1. Reads your agpm.json configuration and configured targets
  2. Resolves refs to SHAs (uses lock file if present)
  3. Caches repo at SHA to ~/.agpm/cache/<sha>/
  4. Computes integrity hash (SHA256 of file contents)
  5. Copies artifacts to enabled target directories only

Target Directories

Artifacts are installed only to targets explicitly configured in agpm.json:

TargetSkills 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