Skip to main content

CLI Reference — inetp

The inetp command-line tool is installed at /usr/local/bin/inetp after setup.

inetp CLI Reference

Account Management

CommandDescription
inetp create_user <username> <domain>Create a new hosting account and first domain. Auto-assigns port, creates Linux user, Apache vhost, PHP-FPM pool, FTP, SSL cert, and MariaDB user.
inetp delete_user <username>Delete a hosting account and all associated domains, vhosts, FPM pools, and database users.
inetp add_domain <username> <domain>Add an additional domain to an existing hosting account.
inetp remove_domain <domain>Remove a domain from a hosting account. Deletes vhost, FPM pool, and SSL certificate.
inetp suspend_account <username>Suspend a hosting account (stops FPM pool without deleting files).
inetp change_password <username> <password>Change the Linux system password for a hosting account (used for FTP and SSH).
inetp fix_permissions <username>Reset file permissions for a hosting account web root.
inetp listList all hosting accounts with port, PHP version, and disk usage.

SSL Management

CommandDescription
inetp ssl_manage issue <domain>Issue a new Let's Encrypt certificate for a domain via Cloudflare DNS-01 challenge.
inetp ssl_manage revoke <domain>Revoke the Let's Encrypt certificate for a domain.
inetp ssl_manage renew <domain>Force renew the SSL certificate for a specific domain.
inetp ssl_manage statusList all SSL certificates with expiry dates and renewal status.

WireGuard VPN

CommandDescription
inetp wireguard_setupInteractive WireGuard VPN setup wizard (port, subnet, endpoint, auto-peer).
inetp wireguard_uninstallRemove WireGuard VPN configuration and disable the VPN interface.
inetp wg_peer add <name>Add a new WireGuard peer by name. Generates keys and config automatically.
inetp wg_peer delete <name>Remove a WireGuard peer by name.
inetp wg_peer qr <name>Display the WireGuard QR code for a peer in the terminal (for mobile app scanning).

Firewall & Security

CommandDescription
inetp firewall statusShow firewall status, active zones, and fail2ban jail statuses.
inetp firewall ban <ip>Manually ban an IP address via fail2ban.
inetp firewall unban <ip>Unban an IP address from all fail2ban jails.
inetp firewall flushFlush all fail2ban bans (use with caution).

Backups & Utilities

CommandDescription
inetp backup_accountsTrigger a full backup of all hosting accounts immediately (files + databases).
inetp optimize_imagesRun image optimization (pngquant, cwebp, gifsicle) on all hosting account web roots.
inetp panel_updateUpdate iNetPanel to the latest release from GitHub. Runs migrations automatically.
inetp panel_update --forceForce reinstall the latest release even if already on the current version.
inetp -vDisplay the installed iNetPanel version.
inetp --helpDisplay all available commands and usage.