ReferenceCLI
Upgrade
Upgrade CLI command reference
goodmem upgrade
Upgrade GoodMem CLI to the latest version
Synopsis
Upgrade the GoodMem CLI to the latest version by downloading and installing the newest release from GitHub. The upgrade process includes SHA-256 archive verification, cross-platform binary extraction, atomic replacement with backup, and automatic rollback on failure. Supports Windows executables and symlink installations.
goodmem upgrade [flags]Examples
# Upgrade to the latest version (with interactive confirmation)
goodmem upgrade
# Check if update is available (CI-friendly, exits 1 if available)
goodmem upgrade --check
# Upgrade automatically without confirmation (for scripts)
goodmem upgrade --yes
# Show what would be done without actually upgrading
goodmem upgrade --dry-run
# Target a specific release tag instead of latest
goodmem upgrade --tag v1.4.0
# Combine flags for automated CI upgrades
goodmem upgrade --check && goodmem upgrade --yesOptions
--check Only check if update is available (exit 0 if up-to-date, 1 if update available)
--dry-run Show upgrade plan without downloading or installing
-h, --help help for upgrade
--tag string Target specific release tag instead of latest (e.g., 'v1.4.0') (default "latest")
-y, --yes Skip interactive confirmation prompt (useful for automation)Options inherited from parent commands
--api-key string API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
--server string GoodMem server address (gRPC API) (default "https://localhost:9090")SEE ALSO
- goodmem - GoodMem CLI provides command-line access to memory APIs