| 1 | {/* AUTO-GENERATED — do not edit. Synced by scripts/sync-developer-docs.mjs from docs/cli-install-npm.md (smbcloud-cli, main). */} |
| 2 | |
| 3 | # npm Installation |
| 4 | |
| 5 | import { Callout } from 'nextra/components' |
| 6 | |
| 7 | <Callout type="info"> |
| 8 | Synced from [`docs/cli-install-npm.md`](https://github.com/smbcloudXYZ/smbcloud-cli/blob/main/docs/cli-install-npm.md) on the `main` branch of |
| 9 | [smbcloud-cli](https://github.com/smbcloudXYZ/smbcloud-cli). Edit it there. |
| 10 | </Callout> |
| 11 | |
| 12 | ## Install |
| 13 | |
| 14 | ```bash |
| 15 | npm install -g @smbcloud/cli |
| 16 | ``` |
| 17 | |
| 18 | Also works with pnpm, bun, and yarn: |
| 19 | |
| 20 | ```bash |
| 21 | pnpm add -g @smbcloud/cli |
| 22 | bun add -g @smbcloud/cli |
| 23 | yarn global add @smbcloud/cli |
| 24 | ``` |
| 25 | |
| 26 | ## Verify |
| 27 | |
| 28 | ```bash |
| 29 | smb --version |
| 30 | ``` |
| 31 | |
| 32 | ## Upgrade |
| 33 | |
| 34 | ```bash |
| 35 | npm update -g @smbcloud/cli |
| 36 | ``` |
| 37 | |
| 38 | ## Uninstall |
| 39 | |
| 40 | ```bash |
| 41 | npm uninstall -g @smbcloud/cli |
| 42 | ``` |
| 43 | |
| 44 | ## Pre-built binaries |
| 45 | |
| 46 | All installation methods above use pre-built binaries. You can also download them directly from the [GitHub releases page](https://github.com/smbcloudXYZ/smbcloud-cli/releases) — useful for air-gapped environments, custom install scripts, or pinning to a specific version. |