addon command
keel addon <subcommand>Two subcommands:
keel addon remove <alias> # remove an installed addonkeel addon upgrade [alias] # upgrade one or all addonsBoth subcommands require a valid Keel project (go.mod, cmd/main.go, internal/).
keel addon remove
Section titled “keel addon remove”keel addon remove <alias>keel addon remove <alias> --yesRemoves a Keel addon from the current project.
What it undoes
Section titled “What it undoes”- Removes the Go module from
go.mod(via the addon’s uninstall steps) - Removes wiring from
cmd/main.go(imports, setup calls) - Removes env entries added by the addon from
.envand.env.example - Removes the
[[addons]]entry fromkeel.toml
| Flag | Description |
|---|---|
--yes, -y | Skip the confirmation prompt |
Confirmation prompt
Section titled “Confirmation prompt”Without --yes, the command shows:
Remove addon "gorm" (v0.4.1)? This will undo wiring in cmd/main.go, env files, and keel.toml. [y/N]Only y proceeds. Any other input aborts.
Examples
Section titled “Examples”keel addon remove gormkeel addon remove jwt --yesCommon errors
Section titled “Common errors”keel addon must be executed inside a Keel projectaddon "X" not found in keel.tomlcould not fetch addon manifest for X: ...
keel addon upgrade
Section titled “keel addon upgrade”keel addon upgrade # upgrade all installed addonskeel addon upgrade <alias> # upgrade a specific addonkeel addon upgrade --refresh # force refresh addon registry before upgradingUpgrades one or all addons declared in keel.toml to their latest version.
How it works
Section titled “How it works”For each target addon:
- Runs
go get <repo>@latest - Compares the new version against the previous version in
go.mod - Updates the
versionfield inkeel.tomlif changed - After all upgrades, runs
go mod tidy
| Flag | Description |
|---|---|
--refresh | Force refresh of the addon registry cache before resolving aliases |
Output
Section titled “Output” Upgrading 2 addon(s)...
→ go get github.com/slice-soft/ss-keel-gorm@latest ✓ gorm v0.4.0 → v0.4.1 → go get github.com/slice-soft/ss-keel-jwt@latest ✓ jwt already at v0.3.0
✓ upgrade complete (1 updated)Examples
Section titled “Examples”# Upgrade all addonskeel addon upgrade
# Upgrade only gormkeel addon upgrade gorm
# Force fetch latest registry datakeel addon upgrade --refreshCommon errors
Section titled “Common errors”keel addon must be executed inside a Keel projectaddon "X" not found in keel.tomlno repo in keel.toml for addon "X"go get <repo>@latest: ...(network or module resolution error)
Relationship with keel add
Section titled “Relationship with keel add”| Command | Purpose |
|---|---|
keel add <alias> | Install a new addon (not yet in the project) |
keel addon upgrade [alias] | Upgrade already-installed addons |
keel addon remove <alias> | Remove an installed addon |
Use keel doctor after any addon operation to verify the project is healthy.