Update CLI docs to have bun step

This commit is contained in:
Dillon DuPont
2025-11-14 16:03:48 -05:00
parent 1040ed8a9e
commit d6184810f3
2 changed files with 17 additions and 8 deletions

View File

@@ -339,7 +339,7 @@ Get started quickly with the CUA CLI - the easiest way to manage cloud VMs and r
### Install the CUA CLI
<Tabs items={['macOS / Linux', 'Windows', 'npm (Alternative)', 'From Source']}>
<Tabs items={['macOS / Linux', 'Windows', 'Bun (Alternative)', 'From Source']}>
<Tab value="macOS / Linux">
```bash
curl -LsSf https://cua.ai/cli/install.sh | sh
@@ -350,9 +350,13 @@ Get started quickly with the CUA CLI - the easiest way to manage cloud VMs and r
powershell -ExecutionPolicy ByPass -c "irm https://cua.ai/cli/install.ps1 | iex"
```
</Tab>
<Tab value="npm (Alternative)">
<Tab value="Bun (Alternative)">
```bash
npm install -g @trycua/cli
# Install Bun if you don't have it
curl -fsSL https://bun.sh/install | bash
# Install CUA CLI
bun add -g @trycua/cli
```
</Tab>
<Tab value="From Source">

View File

@@ -31,16 +31,21 @@ These scripts will automatically:
The installation scripts will automatically detect your system and install the appropriate binary to your PATH.
</Callout>
## Alternative: npm Install
## Alternative: Install with Bun
You can also install the CLI via npm if you prefer:
You can also install the CLI directly using Bun:
```bash
npm install -g @trycua/cli
# Install Bun if you don't have it
curl -fsSL https://bun.sh/install | bash
# Install CUA CLI
bun add -g @trycua/cli
```
<Callout type="warn">
The npm package requires Node.js 18+ to be installed on your system.
<Callout type="info">
Using Bun provides faster installation and better performance compared to npm.
If you don't have Bun installed, the first command will install it for you.
</Callout>
## Verify Installation