update

Update the lock file to the latest available versions.

Usage

agpm update [artifact]

Arguments

ArgumentDescription
artifactOptional: specific artifact to update. If omitted, updates all.

Examples

Update all artifacts:

agpm update

Update a specific artifact:

agpm update anthropics/skills/pdf

What Happens

  1. Fetches latest SHAs for each ref (tag/branch/HEAD)
  2. Updates agpm-lock.json with new SHAs
  3. Recalculates integrity hashes

For artifacts pinned to a branch (e.g., pdf@main), update resolves to the latest commit on that branch. For artifacts pinned to a tag or SHA, the SHA doesn't change.

Important

After updating, you need to run agpm install to apply the changes:

agpm updateagpm install

When to Update

  • When you want the latest version of artifacts
  • After upstream repositories have new commits
  • When troubleshooting issues with outdated artifacts

See Also