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

docs: mise installation command (#2938)

Zeno Jiricek 10 месяцев назад
Родитель
С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
 choco install opencode             # Windows
 brew install opencode      # macOS and Linux
 brew install opencode      # macOS and Linux
 paru -S opencode-bin               # Arch Linux
 paru -S opencode-bin               # Arch Linux
+mise use --pin -g ubi:sst/opencode # Any OS
 ```
 ```
 
 
 > [!TIP]
 > [!TIP]

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

@@ -131,6 +131,18 @@ if (image) {
           </span>
           </span>
         </button>
         </button>
       </div>
       </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>
 
 
     <section class="images">
     <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
   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.
 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).
 You can also grab the binary from the [Releases](https://github.com/sst/opencode/releases).