Skip to Content
New to Genbox? Check out our Getting Started guide
Commandsupdate

gb update

Update CLI to the latest version.

Synopsis

gb update [options] gb upgrade [options]

Description

Updates the Genbox CLI to the latest version. Checks for updates and installs if available.

Options

OptionDescription
--checkOnly check for updates, don’t install
--forceForce update even if current

Examples

Update CLI

gb update

Check Only

gb update --check

Force Update

gb update --force

Output

Update Available

Checking for updates... Current version: 1.0.130 Latest version: 1.0.135 Updating... ✓ Downloaded genbox@1.0.135 ✓ Installed globally Updated to 1.0.135! What's new: • Improved database sync performance • New 'gb template' command • Bug fixes for port forwarding

Already Current

Checking for updates... Current version: 1.0.135 Latest version: 1.0.135 You're running the latest version!

Update Methods

The update command uses the same package manager as your installation:

Installed viaUpdate command
npmnpm update -g genbox
pnpmpnpm update -g genbox
yarnyarn global upgrade genbox

Manual Update

If auto-update fails:

# npm npm install -g genbox@latest # pnpm pnpm add -g genbox@latest

Notes

  • Run periodically to stay current
  • Major versions may have breaking changes
  • Check changelog for notable changes
  • --force bypasses version check

See Also

Last updated on