grekt upgrade
Upgrade artifacts to their latest registry versions.
bash
grekt upgrade [artifact]Registry Only
This command only upgrades artifacts from registries. GitHub and GitLab sources are skipped. Use git pull for git-sourced artifacts.
Arguments
| Argument | Description |
|---|---|
[artifact] | Specific artifact to upgrade (e.g., @scope/name). Omit to upgrade all. |
Examples
bash
# Upgrade all outdated registry artifacts
grekt upgrade
# Upgrade a specific artifact
grekt upgrade @scope/my-artifactOutput
bash
$ grekt upgrade
Upgrading 2 artifact(s):
@scope/my-artifact: 1.0.0 -> 2.0.0
@scope/utils: 2.0.0 -> 3.1.0
Upgraded:
@scope/my-artifact: 1.0.0 -> 2.0.0
@scope/utils: 2.0.0 -> 3.1.0When all artifacts are current:
bash
$ grekt upgrade
All artifacts are up to dateComponent selection preservation
Artifacts installed with --choose retain their component selection during upgrade. If the new version has no structural changes, the previous selection applies silently.
When the new version adds or removes components, the upgrade shows a diff and re-opens the selector with previous items pre-checked:
@scope/git-flow: structural changes detected
Removed components:
- skills/old-feature.md
New components:
+ skills/new-feature.md
+ agents/reviewer.md
? Select components to install:
◉ agent: Git Flow Agent
◯ agent: Reviewer (new, unchecked)
◉ skill: Branch Management
◯ skill: New Feature (new, unchecked)
◉ command: Create PRHow it works
- Reads
grekt.lockand filters to registry artifacts - Checks each artifact's latest version via the registry
- Downloads and installs artifacts with newer versions
- Preserves component selections and sync mode (CORE/LAZY)
- Updates
grekt.yaml,grekt.lock, and regenerates the index - Auto-syncs to configured targets
Related commands
- grekt outdated - Check which artifacts have updates
- grekt add - Add or update a single artifact
- grekt install - Install from lockfile