docs: fix install command rendering (#41340)

Co-authored-by: Kit Langton <7587245+kitlangton@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-08-08 20:28:07 -04:00
committed by GitHub
Unverified
parent bc51baa9a4
commit 445af9ce70
+20 -4
View File
@@ -20,10 +20,26 @@ description: "Get started with OpenCode."
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>
<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>
The package uses a trusted postinstall script to select the native `opencode2` binary for your platform. The Bun and pnpm