feat(cli): Add automatic update command and documentation updates
This commit is contained in:
41
readme.md
41
readme.md
@@ -19,7 +19,22 @@ MOXYTOOL is a comprehensive command-line tool for managing Proxmox servers, with
|
||||
|
||||
## Installation
|
||||
|
||||
### Global Installation (Recommended)
|
||||
### One-Line Installation (Recommended)
|
||||
|
||||
```bash
|
||||
# Download and install MOXYTOOL automatically
|
||||
curl -sSL https://code.foss.global/serve.zone/moxytool/raw/branch/main/install.sh | sudo bash
|
||||
```
|
||||
|
||||
This will:
|
||||
- Detect your platform automatically (Linux x64/ARM64, macOS Intel/Apple Silicon, Windows)
|
||||
- Download the latest binary from Gitea releases (~400-500KB)
|
||||
- Install to `/usr/local/bin/moxytool`
|
||||
- Make it available system-wide
|
||||
|
||||
### Via npm (Alternative)
|
||||
|
||||
Install globally using npm:
|
||||
|
||||
```bash
|
||||
npm install -g @serve.zone/moxytool
|
||||
@@ -31,14 +46,28 @@ or with pnpm:
|
||||
pnpm install -g @serve.zone/moxytool
|
||||
```
|
||||
|
||||
### Local Installation
|
||||
|
||||
```bash
|
||||
npm install @serve.zone/moxytool
|
||||
```
|
||||
**Benefits:**
|
||||
- Automatic platform detection and binary download
|
||||
- Easy updates via `npm update -g @serve.zone/moxytool`
|
||||
- Version management with npm
|
||||
- Works with Node.js >=14
|
||||
|
||||
## Usage
|
||||
|
||||
### Updating MOXYTOOL
|
||||
|
||||
Update to the latest version from the repository:
|
||||
|
||||
```bash
|
||||
moxytool update
|
||||
```
|
||||
|
||||
This command will:
|
||||
- Check the current version
|
||||
- Fetch the latest release from Gitea
|
||||
- Automatically download and install the update if available
|
||||
- Preserve your existing configuration
|
||||
|
||||
### vGPU Setup
|
||||
|
||||
Install and configure NVIDIA vGPU support on your Proxmox host:
|
||||
|
||||
Reference in New Issue
Block a user