[one-liner] Install OpenCode
Install OpenCode CLI using one line of command
On this page
One-Liner series: OpenCode
source: OpenCode documentation
Install on Linux or macOS
curl -fsSL https://opencode.ai/v2/install | bash
Install on Windows
Install with npm
npm install -g @opencode/cli
Verify installation
opencode --version
Update
opencode upgrade