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

docs: mise installation command (#2938)

Zeno Jiricek 3 месяцев назад
Родитель
Сommit
61fd21182c
3 измененных файлов с 19 добавлено и 0 удалено
  1. 1 0
      README.md
  2. 12 0
      packages/web/src/components/Lander.astro
  3. 6 0
      packages/web/src/content/docs/index.mdx

+ 1 - 0
README.md

@@ -30,6 +30,7 @@ scoop bucket add extras; scoop install extras/opencode  # Windows
 choco install opencode             # Windows
 brew install opencode      # macOS and Linux
 paru -S opencode-bin               # Arch Linux
+mise use --pin -g ubi:sst/opencode # Any OS
 ```
 
 > [!TIP]

+ 12 - 0
packages/web/src/components/Lander.astro

@@ -131,6 +131,18 @@ if (image) {
           </span>
         </button>
       </div>
+      <div class="col4">
+        <h3>Mise</h3>
+        <button class="command" data-command="mise use --pin -g ubi:sst/opencode">
+          <code>
+            <span>mise use --pin -g</span> <span class="highlight">ubi:sst/opencode</span>
+          </code>
+          <span class="copy">
+            <CopyIcon />
+            <CheckIcon />
+          </span>
+        </button>
+      </div>
     </section>
 
     <section class="images">

+ 6 - 0
packages/web/src/content/docs/index.mdx

@@ -106,6 +106,12 @@ You can also install it with the following commands:
   npm install -g opencode-ai
   ```
 
+- **Using Mise**
+
+  ```bash
+  mise use --pin -g ubi:sst/opencode
+  ```
+
 Support for installing OpenCode on Windows using Bun is currently in progress.
 
 You can also grab the binary from the [Releases](https://github.com/sst/opencode/releases).