cv4pve-cli

Corsinvest Srl·Corsinvest.cv4pve.cli

Command Line Interface for Proxmox VE

cv4pve-cli is a comprehensive command-line interface tool for Proxmox VE that provides powerful management and automation capabilities for your virtualization infrastructure. Features: - VM/Container management and automation - Snapshot and backup operations - Resource monitoring and management - Cluster operations - Advanced scripting capabilities - Multiple output formats (Text, HTML, JSON, Markdown) - Batch operations support - Integration with Proxmox VE API

winget install --id Corsinvest.cv4pve.cli --exact --source winget

Latest 2.4.0·September 30, 2026

Release Notes

What's new

  • Documentation site at https://corsinvest.github.io/cv4pve-cli/: contexts, permissions, API calls, aliases, tasks, tab completion, scripting, AI coding assistants, coming from pvesh, and a reference of every command, alias and file.
  • Output as pvesh shows it. Lists show the columns the API schema describes and name the others on standard error; --all-columns (-A) shows them all. Sizes, percentages, durations and dates are printed as text (251.51 GiB, 4.44%, 3d 2h 5m 1s, 2026-09-30 14:22:23) and aligned right; --human-readable false (or 0) prints the values as the API returns them. -o json always has every column and the raw values.
  • --wait-timeout limits how long --wait waits for a task.
  • Skill for AI coding assistants: skills/cv4pve-cli/SKILL.md for Claude Code, Codex and other assistants: when to use cv4pve-cli, how to read with JSON, find guests, explore the API, run changes with --dry-run first and --yes only after the user agrees.
  • New aliases: performance history, node versions and services, VM migration check, firewall logs, IPSets and aliases, Corosync and QDevice, SDN apply, guest filesystem freeze. Listed under Aliases below. Fixes
  • No key of the answer is lost: api get …/config, show vm and -o json now list numbered keys such as net0, scsi0, ide2, usb0.
  • Sizes, percentages, durations and dates are readable again: the cached API schema had lost how to render them. The cache in ~/.cv4pve/cli/cache is rebuilt once.
  • Tab completion after --guest proposes the parameters and their values at once: the value of --guest (or of -o, or of a --key) was read as the node, and the completion waited 30 seconds for the answer of a node that does not exist.
  • Logs go to standard error: with --debug or --log-level, and for a call that fails before an answer, the log no longer mixes with the output (-o json, completions).
  • Tables are aligned and escaped: numbers aligned right in text, Markdown and Html output; | in Markdown and <, & in Html no longer break the table; a value on more lines stays inside its cell.
  • --wait waits until the task ends, prints its exit status and exits with 5 when it fails. It used to stop after 30 seconds and ignore the result.
  • --yes is enforced. Aliases that change the cluster the most (delete, stop, reboot, rollback, restore…) ran without --yes, and failed with it because --yes was sent to Proxmox VE as a parameter. They now stop with exit code 6 without --yes, and --yes is no longer sent.
  • --dry-run works: api set/create/delete/get and aliases print the method, the path and the parameters, and send nothing. Aliases that need --yes do not need it with --dry-run.
  • API errors exit with a non-zero code and print on stderr: 6 for a rejected parameter (HTTP 400), 2 for a missing privilege (401/403), 3 for a path or object that does not exist, 4 for other server errors. They used to exit with 0 on stdout.
  • API errors say what went wrong: the call that was sent, what the alias runs, whether the refused parameter is written in the alias itself (a bug to report) or by the user, and, for a rejected parameter, the api usage command that lists the accepted ones.
  • api ls and api usage on a path the API does not have print no such resource on stderr with exit code 3, instead of exit 0.
  • Parameters are read in the order written. A --key without a value in the middle no longer shifts the values of the keys after it, --key=value is accepted, a repeated parameter or a value without --key is an error (exit 6).
  • Alias parameters are passed on as --key=value: a value such as -v or -o is no longer read as an option of cv4pve-cli.
  • A value that goes into the path of an alias (get vm status pve01 "100/../x") is refused with exit code 6 instead of calling another endpoint.
  • When the API schema cannot be read after a call that ran, the answer is printed as JSON and the call keeps its exit code, instead of failing.
  • api ls lists VM IDs in numeric order (99 before 100).
  • An alias argument equal to the value of a parameter (get vm status pve01 100 --timeout 100) is no longer lost.
  • --debug, --log-level and --dry-run before an alias no longer change how it runs (--guest was not resolved).
  • --guest with a guest that does not exist prints Error: Guest '…' not found. (exit 3) instead of crashing; connection errors are reported as they are instead of "no context configured".
  • An alias called without all its arguments prints the error on stderr with exit code 6.
  • --host accepts a port per node (pve1:8007) and IPv6 addresses without brackets; --port applies to every node written without a port, not only the last one.
  • config view no longer shows part of the API token secret.
  • The "no context" error suggested config add-context, which does not exist: now config add.
  • A path turned into a Windows path by Git Bash (C:/Program Files/Git/version) is refused with a hint about MSYS_NO_PATHCONV=1, instead of a stack trace.
  • Tab completion uses the API schema of the newest Proxmox VE version in the cache (the file names sorted 8.4.9 after 8.4.21).
  • get vms description: it lists VMs and containers, like get guests. Aliases
  • Fixed aliases that always failed: get node packages (wrong path), get node rrddata (now takes the timeframe: get node rrddata <hour|day|week|month|year>), create security token (token ID is part of the path), set node hosts (POST, not PUT), create cluster replication job (--type local is fixed, no longer an argument).
  • Removed aliases that never worked and have no API call to point to: get vm tags, get ct tags, get guest tags, get ct network, get cts, and create/set/delete cluster replication (use create/set/delete cluster replication job).
  • delete vm/ct/guest unused-disk (deletes the disk), create vm/ct/guest template (cannot be undone) and do stop node task now need --yes.
  • New aliases:
    • performance history: get vm/ct/guest rrddata, get node storage rrddata (timeframe as argument);
    • get node versions (like pveversion -v), show node service, do reload node service, do renew node certificate;
    • get vm migrate-check (can the VM migrate, and where), get vm/ct/guest firewall log;
    • get cluster corosync nodes, get cluster qdevice, get cluster firewall groups;
    • cluster firewall IPSets and aliases: get/show/create/delete cluster firewall ipset(s), create/delete cluster firewall ipset-entry, get/create/delete cluster firewall alias(es);
    • do apply cluster sdn (needs --yes), do vm agent fsfreeze (needs --yes), do vm agent fsthaw, do vm agent fsfreeze-status.
  • Aliases whose API call needs a parameter they do not fill say so in their description (firewall rules: --action and --type; metrics server, hardware mappings, PBS scan). Tests
  • New test project Corsinvest.ProxmoxVE.Cli.Tests: parameter parsing, alias rewriting, host list, exit codes.
  • Every built-in alias is checked against the API of the latest Proxmox VE release (schema of the official API viewer, downloaded by the test): path, method and parameters.
  • test-completion.ps1 reads nodes and guests from the cluster instead of holding their names. Documentation
  • The site is built from docs/ and published by the shared cv4pve workflow; the alias reference is generated from the built-in catalog at build time.
  • docs/aliases.md, docs/commands.md and docs/AI-AGENTS.md moved to the site; README shortened to point to it.
  • Contexts: the options of config add can go in a file (cv4pve-cli config add prod @prod.rsp).
  • Coming from pvesh: the same call as pvesh, api and alias, side by side.
  • No em or en dashes in the site, README, CHANGELOG and messages (config verify prints Connected to …, PVE version …); CHANGELOG headings as ## [x.y.z] - date; docs theme 2.6.1. Changed
  • Uses Corsinvest.ProxmoxVE.Api.Console 9.2.4: API calls, parameters and aliases go through its new Shell classes (ApiRequest, ApiCommandLine, ApiSchema); api usage, api ls and tab completion no longer use ApiExplorerHelper. api usage lists the methods in the order get, set, create, delete.
  • The API schema cache file carries the format version of the SDK (-flat-v2.json); older cache files are removed.
  • Product icon (Lucide square-terminal) and Windows executable icon.
  • Project metadata, symbols (Source Link, .snupkg), shared .editorconfig and code style aligned with the other cv4pve tools.
  • CI: the shared cv4pve-tools workflow (build, test, CodeQL, lint); the publish workflow declares the permissions it needs. What's Changed
  • ci: use shared cv4pve-tools CI workflow and declare publish permissions by @franklupo in #17
  • Align project metadata, symbols and icon with the cv4pve tools by @franklupo in #18
  • Add documentation site by @franklupo in #19
  • Fix alias, parameter and error handling; fix and extend built-in aliases by @franklupo in #20
  • docs: response files for contexts, theme 2.4.0 by @franklupo in #21
  • docs: "Options in a file" instead of "response files" by @franklupo in #22
  • docs: readable command mapping in Coming from pvesh by @franklupo in #23
  • Use the SDK Shell classes; readable values, column selection, completion fix by @franklupo in #24
  • Release 2.4.0 by @franklupo in #25 Full Changelog: v2.3.0...v2.4.0

Installer type: zip

x86—E29D613DF4F7F843B4935C1768F64819356015DC500F7AFCAFF7CD4B174FF3DF
x64—418663366E88A34BABC54EDBF08C3EE998D38F3E1D033349D8E0A102AC69A857
arm64—1E4515A1173B51FE705558F8540C0383BCC06CA50005D1FF67DD4F4C0D39661D

Details

Homepage
https://github.com/Corsinvest/cv4pve-cli
License
MIT
Publisher
Corsinvest Srl
Support
https://www.corsinvest.it/cv4pve
Privacy Policy
https://www.corsinvest.it/privacy
Copyright
Copyright (c) 2019-2025 Corsinvest Srl
Moniker
cv4pve-cli

Tags

automationclicorsinvestmanagementproxmoxproxmoxvevirtualizationvm

Older versions (7)

2.3.0
x86—D9C4FA80DB6E6A85A58C3D5DDB35021EC97578A1C52F1703F9F44BD010BD2BEB
x64—CDE89384FA036E21F364DFEBC0D37E4345C25E1BA0B32B42B07A6491C0A2EDD3
arm64—617C4269925C1050A5091A7CB0958996FDDA910C46A5DDD0C5869816C20D4257
2.2.1
x86—B18ADA1582FEA0FBD65DC23F9CE72BB42EE020A03C743E551BA11FFF38CB62D8
x64—CE77217FF199DDB4A5CA35E97E77D35777FD74E7F2BCA23E759542983B676846
arm64—BDED50AC0D65149FB442A3469F1F5934FDF33649749BEFD1C4D12874EB215BC1
2.2.0
x86—833D3B3A08287E57C95C70629901CD7BA05565F310F90C78D0AF0E9E356FB9AA
x64—CC9055A9465E0B5F6EBEFD3E66774FF34225572DD9885762DBE4C3F5E4941940
arm64—285DA3A84BF305AA4EC0F1005AE86D28CC087CE8F453F747B8659B9EFB96F371
2.1.0
x86—9969FE31E51E8D182D6278AA410B5D5557FE5FD29905A361888560F17DBA9A7C
x64—47DF57927B1B23299C74BADE52A8A6F15E5AD8E4F2DF4923FC4D2ABB4F1B39B0
arm64—9EBBD7BFD97533BEAE43E718C846BBF13FF91F3DDBEBBFA598100FCF82A2448E
2.0.0
x86—8E958E948FDAF8173E29735815C80F37C4016A3F526087EAD66CCF6C01FED609
x64—031438887BE9AE72B9F38396BAE3DAEE8CCB9A060A553E7BC421298903B3C231
arm64—EA350C8E08DD65ED4D878BBFBDC98A66B852878F4648DF0DC8EA6C0FEF02EC9F
1.11.0
x86—7A60AD365A5A447516066E096FFE6CF0C5074BCE312EE99C0F525819880DDA39
x64—3EAB8B3FC9EED4212FAD45C0DCC61CD4E40D15482ECF42383AF0C1954C8BB75E
arm64—F099549CEB5AD71F16ADB30DDD1749208F5C566E1B1C4355FF13D860F3E0613F
1.10.0
x64—7551E0A01979AB4B82581C310490A3795BC894DE7343BABFC00418691E573243
x86—7D8F25D680B228F222D311C1A6FF03537580887383C49D8AEC02936735A517A2
arm64—31C9B81DBC1EC48B23CCBFE04098DDB7C3402124BAF5253C8DA50D660917A51C