A TUI-based tool for managing Proxmox VE.

- TBD
-
Clone the repository:
git clone https://github.com/your-username/pve-cli-tool.git cd pve-cli-tool
-
Install dependencies:
go mod tidy
-
Build the application:
go build -o pve-cli-tool cmd/pve-cli-tool/main.go
This application is configured via a .env
file. Copy the .env.example
file to .env
and fill in your Proxmox server details.
cp .env.example .env
The tool supports two authentication methods:
- API Token (Recommended)
- User and Password
To use API token authentication, you need to generate a token in your Proxmox VE web interface.
- Log in to your Proxmox VE web UI.
- Go to Datacenter -> Permissions -> API Tokens.
- Click Add.
- Select a User (e.g.,
root@pam
). - Enter a Token ID (e.g.,
pve-cli-tool
). - Uncheck Privilege Separation.
- Click Add.
- A dialog will appear with the Token ID and Secret. Copy the secret immediately, as it will not be shown again.
- In your
.env
file, set the following variables:PROXMOX_API_TOKEN_ID="your-token-id" PROXMOX_API_TOKEN_SECRET="your-secret"
To use user and password authentication, set the following variables in your .env
file:
PROXMOX_USER="your-user"
PROXMOX_PASSWORD="your-password"
Note: If both API token and user/password are provided, the API token will be used.
./pve-cli-tool