DocsCommand-line tools

Command-line tools

The zopanel-setup commands on each server (preflight, repair, update, rollback, admin-login, unban, support-bundle) and panel-cli for the public API.

Zopanel ships two command-line tools: zopanel-setup, which runs on a server as Administrator, and panel-cli, which talks to the panel's public API from anywhere.

zopanel-setup

On an installed server it lives in C:\Program Files\Zopanel\installer\. Run it in PowerShell as Administrator:

& 'C:\Program Files\Zopanel\installer\zopanel-setup.exe' <command>

Running it with no arguments prints the full syntax.

Command What it does
preflight Checks the server before installing: Windows version, RAM, disk, ports, pending restart, clock, Plesk, domain controller. -no-fix-clock only looks
install Installs from a release folder: -roles panel,agent or -roles agent -server <url> -ca-sha256 <fp> -enroll <token>; also -adopt, -preset, -no-shortcut
setup-link Prints the one-time link to the setup wizard
version Prints the installed version
repair Rebuilds services, folder permissions and firewall rules from setup.json. -restart restarts all Zopanel services, -no-restart only reports
update Run from a new release folder: installs it in place, with backup, health check and automatic rollback. -feed <url> downloads the latest release from a feed
rollback -discard-changes-since-update Goes back to the previous version and its database; panel changes made since the update are lost
letsencrypt -agree-tos Turns on Let's Encrypt for a running panel. -staging uses the test CA
admin-login Prints a one-time sign-in link (10 minutes) for a provider administrator. -email chooses the account, -reset-mfa removes their 2FA when the link is used, -clear-allow-list empties the admin IP allow-list
unban <ip> Lifts an automatic IP ban
support-bundle Writes a support bundle with secrets removed: -out, -incident, -since 72h, -tenant <id> -consent-tenant-data, -redact-emails
restore-panel Restores the panel from a disaster recovery export onto a clean installation
uninstall Removes the program and keeps data; -purge-data -confirm <server name> also deletes the panel's data

admin-login works only on the panel server itself: it reads a secret that only Administrators and SYSTEM can read, and the panel accepts the request from loopback only.

panel-cli

panel-cli covers the panel's public API, the same one the provisioning API and the WHMCS module use. It authenticates with an API key and follows long operations (202 answers) until they finish, then prints the result. For example, panel-cli api raw sends any request to the API.

Status: limited. It has driven a panel on Windows from another machine; running it from PowerShell on Windows has not been tested yet.

PowerShell checks you will use

Get-Service Zopanel* | Format-Table Name, Status, StartType
Get-NetFirewallRule -DisplayName 'Zopanel*' | Format-Table DisplayName, Enabled, Direction
Get-AuthenticodeSignature 'C:\Program Files\Zopanel\installer\zopanel-setup.exe' | Format-List Status, SignerCertificate
Test-NetConnection panel.example.com -Port 8443
w32tm /query /status

MSI

The MSI takes the same choices as properties (ROLES, PUBLIC_URL, ACME_AGREE_TOS, PRESET, PURGE_DATA…). See Install.


← Known issues and feature status