inetp CLI Reference
Account Management
| Command | Description |
inetp create_account --username <user> --domain <domain> --password <pass> | Create a hosting account and its first domain in one step. Auto-assigns a port and creates the Linux user, Apache vhost, PHP-FPM pool, FTP access, SSL certificate and MariaDB user. |
inetp create_user --username <user> --password <pass> | Create a hosting user only, with no domains. Add domains afterwards with add_domain. |
inetp delete_user --username <user> [--force] [--no-backup] | Delete a hosting user and everything it owns: databases, MariaDB user, crontab, FTP entry, home directory and panel records. Takes a final backup first unless --no-backup. Refuses while domains remain unless --force. Safe to re-run — it resumes an interrupted deletion. |
inetp delete_account --username <user> --confirm [--no-backup] | Remove every domain for a user, then the user itself. Re-runnable; resumes if a previous attempt was interrupted. |
inetp add_domain --username <user> --domain <domain> [--port <n>] [--php-version 8.4] | Add an additional domain to an existing hosting account. |
inetp remove_domain --username <user> --domain <domain> [--no-backup] | Remove one domain: vhost, listening port, FPM pool, SSL certificate, that domain's database and its files. Leaves the user and their other domains alone. |
inetp suspend_account --username <user> --suspend|--resume | Suspend or resume a hosting account. Serves a suspended page and locks the login without deleting anything. |
inetp change_password --username <user> --password <pass> | Change the system password for a hosting account (used for FTP, SSH and the account portal). |
inetp reset_password --username <user> [--password <pass>] | Reset the FTP/SSH/MariaDB password for a user. Generates one if not supplied. |
inetp fix_permissions <username> | Reset file and directory ownership and 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 restore_account --username <user> --backup-file <path> | Restore an account from a backup archive. |
inetp optimize_images | Run image optimization (pngquant, cwebp, gifsicle) on all hosting account web roots. |
inetp optimize_server | Auto-tune Apache and MariaDB for this server's CPU and memory. |
inetp cleanup [--dry-run] | Remove temp files, old logs and orphaned PHP-FPM pools. --dry-run reports without deleting. |
inetp rotate_logs | Force log rotation for all system and hosting account logs. |
inetp db_repair | Check and repair MariaDB tables, and vacuum the panel SQLite database. |
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. |
Diagnostics & Repair
These read the server and report. audit_orphans, status,
dns_check and disk_report change nothing at all, so they are
always safe to run on a live server.
| Command | Description |
inetp status | Server health summary: uptime, load, memory, disk, service states, SSL expiry, backup age and account counts. |
inetp audit_orphans | Cross-reference every hosting account against the system and report anything that has drifted, in both directions — accounts with missing pieces, and leftover resources with no account. Covers system users, home directories, the FTP allowlist, crontabs, databases, MariaDB users, Apache vhosts, PHP-FPM pools, certificates, ports and unfinished deletions. Read-only, with no --fix mode by design. |
inetp audit_orphans --user <user> | Same checks scoped to one account. Exits 0 when clean, 1 when something was found, 2 when it could not check. |
inetp rebuild_vhosts --check | Report Apache vhosts that are missing for a known domain, or orphaned because the account they point at is gone. An orphaned vhost stops Apache starting at its next restart, which takes every site on the server down, so this is worth running after any failed deletion. |
inetp rebuild_vhosts [--disable-orphans] | Regenerate missing vhosts from the panel database. With --disable-orphans, also disables the broken ones it finds. |
inetp rebuild_pools | Regenerate any missing PHP-FPM pool configs from the panel database. |
inetp dns_check <domain> | DNS, SSL and connectivity diagnostics for one domain, checked against several public resolvers. Useful first step when a site returns 502 through a Cloudflare tunnel. |
inetp disk_report | Disk usage broken down by hosting user and domain. |
inetp audit | Security audit: file permissions, open ports, SSL, SSH configuration and PHP settings. |
inetp malware_scan | Scan hosting account PHP files for backdoors and webshells. |
inetp benchmark | Quick server benchmark: disk, network, PHP and MySQL. |
inetp speedtest | Network bandwidth test. |
PHP Version Management
| Command | Description |
inetp multiphp_manage --action <action> --version <ver> | Install, remove or set the default PHP version. |
inetp multiphp_manage --action switch --domain <domain> --version <ver> | Switch a single domain to a different installed PHP version. |
A note on arguments. Most inetp subcommands take named
flags rather than positional arguments — inetp delete_user --username bob,
not inetp delete_user bob. If a command replies that an argument is
required when you appear to have supplied it, that is usually why.
inetp dns_check accepts either form.