commands.sh

opencode upgrade

all

Upgrade OpenCode to the latest version or a specific version.

More info →

Options (2)

-m, --methodboolean

Upgrade using a specific installation method

Example: opencode upgrade {{[-m|--method]}} {{curl|npm|pnpm|bun|brew|choco|scoop}}
-h, --helpboolean

Display help

Example: opencode upgrade {{[-h|--help]}}

Examples (4)

Upgrade to the latest version

Upgrade/downgrade to a specific version

Upgrade using a specific installation method

opencode upgrade [-m|--method] curl|npm|pnpm|bun|brew|choco|scoop

Display help

opencode upgrade [-h|--help]
made by @shridhargupta | data from tldr-pages