Просмотр исходного кода

docs: fix package manager code blocks (#42313)

Co-authored-by: Kit Langton <7587245+kitlangton@users.noreply.github.com>
opencode-agent[bot] 1 день назад
Родитель
Сommit
08a6d7b619
1 измененных файлов с 19 добавлено и 10 удалено
  1. 19 10
      packages/www/content/docs/index.mdx

+ 19 - 10
packages/www/content/docs/index.mdx

@@ -15,20 +15,29 @@ description: "Get started with OpenCode."
 
 ## Install
 
-### Install script
+<CodeGroup>
 
-```bash
-curl -fsSL https://raw.githubusercontent.com/anomalyco/opencode/v2/install | bash
+```bash npm
+npm install -g @opencode-ai/cli@next
 ```
 
-You can also install it with the following package managers.
+```bash bun
+bun install -g --trust @opencode-ai/cli@next
+```
 
-<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>
+```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
+```
+
+</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.