Skip to content

apkg update

The update command checks the registry for newer versions of your dependencies and upgrades them. By default it respects the semver ranges in apkg.json (e.g. ^1.2.0). Use --latest to ignore ranges and jump to the absolute latest version.

Terminal window
apkg update [<package>] [--latest] [--dry-run] [--setup <tool>] [--no-setup]
OptionDescription
--latestIgnore semver ranges and update to the absolute latest version
--dry-runShow what would change without downloading or writing any files
--setup <tool>Generate configuration for a specific tool (e.g. claude-code)
--no-setupSkip post-install tool setup entirely
Terminal window
apkg update

Resolves every dependency in apkg.json against the registry and upgrades any package that has a newer compatible version available. A summary table is printed showing the current and updated versions.

Terminal window
apkg update @acme/code-reviewer

Only updates the specified package. The command fails if the package is not listed in apkg.json.

Without --latest, the command stays within the caret range recorded in apkg.json. For example, if apkg.json has "^1.2.0", the command will update to the newest 1.x.x release but will not jump to 2.0.0.

With --latest, the command fetches the absolute latest version regardless of the range, and updates the range in apkg.json to match (e.g. ^1.2.0 becomes ^2.1.0).

Use --dry-run to preview changes without modifying any files:

Terminal window
apkg update --dry-run

This prints the changes table and exits. No packages are downloaded, and neither apkg.json nor apkg-lock.json are modified.

After updating a skill or agent package, apkg re-runs tool setup and replaces any previously generated configuration files. Use --setup claude-code to target a specific tool, or --no-setup to skip setup entirely. See Tool Setup Explained for details.

Update all dependencies within their semver ranges:

Terminal window
apkg update

Update a single package to the latest compatible version:

Terminal window
apkg update @acme/code-reviewer

Update everything to the absolute latest, ignoring ranges:

Terminal window
apkg update --latest

Preview what would change without modifying anything:

Terminal window
apkg update --dry-run
CommandDescription
addAdd a new package to dependencies
installInstall all dependencies from apkg.json
removeRemove a package from your dependencies
configSet defaultSetup for automatic tool setup