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_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|--resumeSuspend 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 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 restore_account --username <user> --backup-file <path>Restore an account from a backup archive.
inetp optimize_imagesRun image optimization (pngquant, cwebp, gifsicle) on all hosting account web roots.
inetp optimize_serverAuto-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_logsForce log rotation for all system and hosting account logs.
inetp db_repairCheck and repair MariaDB tables, and vacuum the panel SQLite database.
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.

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.

CommandDescription
inetp statusServer health summary: uptime, load, memory, disk, service states, SSL expiry, backup age and account counts.
inetp audit_orphansCross-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 --checkReport 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_poolsRegenerate 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_reportDisk usage broken down by hosting user and domain.
inetp auditSecurity audit: file permissions, open ports, SSL, SSH configuration and PHP settings.
inetp malware_scanScan hosting account PHP files for backdoors and webshells.
inetp benchmarkQuick server benchmark: disk, network, PHP and MySQL.
inetp speedtestNetwork bandwidth test.

PHP Version Management

CommandDescription
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.
Share: 𝕏 Twitter Facebook LinkedIn