CLI Reference — inetp
The inetp command-line tool is installed at /usr/local/bin/inetp after setup.
inetp CLI Reference
Account Management
| Command | Description |
|---|---|
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 list | List all hosting accounts with port, PHP version, and disk usage. |
SSL Management
| Command | Description |
|---|---|
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 status | List all SSL certificates with expiry dates and renewal status. |
WireGuard VPN
| Command | Description |
|---|---|
inetp wireguard_setup | Interactive WireGuard VPN setup wizard (port, subnet, endpoint, auto-peer). |
inetp wireguard_uninstall | Remove 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
| Command | Description |
|---|---|
inetp firewall status | Show 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 flush | Flush all fail2ban bans (use with caution). |
Backups & Utilities
| Command | Description |
|---|---|
inetp backup_accounts | Trigger a full backup of all hosting accounts immediately (files + databases). |
inetp optimize_images | Run image optimization (pngquant, cwebp, gifsicle) on all hosting account web roots. |
inetp panel_update | Update iNetPanel to the latest release from GitHub. Runs migrations automatically. |
inetp panel_update --force | Force reinstall the latest release even if already on the current version. |
inetp -v | Display the installed iNetPanel version. |
inetp --help | Display all available commands and usage. |