|
|
@@ -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.
|