From edee7570287ed8774abeff0d467fcee4e5e357a4 Mon Sep 17 00:00:00 2001 From: Kit Langton <7587245+kitlangton@users.noreply.github.com> Date: Thu, 13 Aug 2026 12:22:32 +0000 Subject: [PATCH] docs: fix package manager code blocks --- packages/www/content/docs/index.mdx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/packages/www/content/docs/index.mdx b/packages/www/content/docs/index.mdx index 6127c136eba..11b4714b0db 100644 --- a/packages/www/content/docs/index.mdx +++ b/packages/www/content/docs/index.mdx @@ -15,20 +15,29 @@ description: "Get started with OpenCode." ## Install -### Install script + -```bash +```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 +``` + +```bash curl curl -fsSL https://raw.githubusercontent.com/anomalyco/opencode/v2/install | bash ``` -You can also install it with the following package managers. - - - ```bash npm install -g @opencode-ai/cli@next ``` - ```bash bun install -g --trust @opencode-ai/cli@next ``` - ```bash pnpm add -g --allow-build=@opencode-ai/cli @opencode-ai/cli@next ``` - ```bash yarn global add @opencode-ai/cli@next ``` - + 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.