update
Update the lock file to the latest available versions.
Usage
agpm update [artifact]
Arguments
| Argument | Description |
|---|---|
artifact | Optional: 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
- Fetches latest SHAs for each ref (tag/branch/HEAD)
- Updates
agpm-lock.jsonwith new SHAs - 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