Compare commits

...
1 Commits
Author SHA1 Message Date
Kit Langtonandopencode-agent[bot] f0e50b7841 docs: fix package manager code blocks 2026-08-13 12:56:25 +00:00
+19 -6
View File
@@ -23,12 +23,25 @@ curl -fsSL https://raw.githubusercontent.com/anomalyco/opencode/v2/install | bas
You can also install it with the following package managers.
<Tabs>
<Tab title="npm">```bash npm install -g @opencode-ai/cli@next ```</Tab>
<Tab title="bun">```bash bun install -g --trust @opencode-ai/cli@next ```</Tab>
<Tab title="pnpm">```bash pnpm add -g --allow-build=@opencode-ai/cli @opencode-ai/cli@next ```</Tab>
<Tab title="Yarn">```bash yarn global add @opencode-ai/cli@next ```</Tab>
</Tabs>
<CodeGroup>
```bash npm
npm install -g @opencode-ai/cli@next
```
```bash bun
bun install -g --trust @opencode-ai/cli@next
```
```bash pnpm
pnpm add -g --allow-build=@opencode-ai/cli @opencode-ai/cli@next
```
```bash Yarn
yarn global add @opencode-ai/cli@next
```
</CodeGroup>
The package uses a trusted postinstall script to select the native `opencode2` binary for your platform. The Bun and pnpm
commands above explicitly allow that script to run.