Skip to content

Network Commands ​

These commands help you manage network configurations, DNS settings, and related services in the AdminBolt system.

bolt-cli flush-dns ​

Flushes the DNS cache to ensure updated DNS records are used.

Example: ​

bash
bolt-cli flush-dns [--domain=example.com]

bolt-cli firewall ​

Manages firewall rules, allowing you to control port access and security zones.

Options: ​

  • --action: The action to perform (allow)
  • --port: The port number to configure
  • --zone: Accepted but not used by the command
  • --protocol: The network protocol for the rule (e.g. tcp, udp)
  • --comment: A description stored with the rule

Example: ​

bash
bolt-cli firewall --action=allow --port=80 --zone=public

This command adds an allow rule for a port with --action=allow.

bolt-cli get-status ​

Gets the status of the AdminBolt installation and prints it as JSON: the panel version, the PHP version, the number of accounts and domains, and the hostname. It reports nothing about the network.

Example: ​

bash
bolt-cli get-status

bolt-cli health-check ​

Checks the critical services and starts any that are stopped.

Example: ​

bash
bolt-cli health-check

Since panel 1.9.0, the command reads each service's real state, including MariaDB and the web server the panel is set to (Apache, OpenLiteSpeed, or LiteSpeed). A stopped service is started and checked again to confirm it came up. A service that is already running is left alone. One failure does not stop the check; the remaining services are still checked.

The command exits with 1 when a required service stays down after the attempt to start it, so a monitoring script can tell a failed recovery from a healthy run.

bolt-cli ping-domains ​

Checks every domain in the panel database and reports whether it is up or down.

Example: ​

bash
bolt-cli ping-domains

bolt-cli setup-web-panel-port ​

Moves the panel to another port. The panel answers on 8443 unless it was installed on another port.

Options: ​

  • --port: The new panel port, a number of at least four digits. Without it, the command uses 8443.

Example: ​

bash
bolt-cli setup-web-panel-port --port=9443

The command opens the new port in the firewall, and the Fail2Ban protection of the panel sign-in follows it, unless you changed the action of that jail yourself (see Fail2Ban Jails). Run with the port the panel already uses, it applies the panel's port configuration and the firewall again.

Since panel 1.9.0, the command refuses a port that is already in use and changes nothing. It reports whether the change succeeded: when the panel does not answer on the new port afterwards, or the sign-in protection could not follow it, the command says what to check and exits with a non-zero code, so scripts can rely on its result. Run it again once the cause is fixed.