Skip to main content
Version: 1.X.X

Domains

Allโ€‹

Lists all domain names currently hosted on the server:

hitechcloudcli domains-all

Userโ€‹

Lists all domain names currently owned by a specific user.

hitechcloudcli domains-user <USERNAME> [--docroot|--php_version]

Addโ€‹

Add a domain name for a user:

hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> [--docroot DOCUMENT_ROOT] [--php_version N.N] [--skip_caddy --skip_vhost --skip_containers --skip_dns] --debug

Custom Docrootโ€‹

To add a domain name with custom docroot:

hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --docroot DOCUMENT_ROOT

Custom PHP versionโ€‹

To add a domain name with custom PHP version:

hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --php_version N.N

Skip Flagsโ€‹

Warning: These flags are intended primarily for automation and debugging purposes and should generally not be used manually in the terminal. Most skip flags are used by automation scripts when adding multiple domains at once, allowing services to be started only after all domains have been provisioned. The --skip_dns, --skip_vhost, and --skip_caddy options are also useful for troubleshooting and retry operations.

  • Skip DNS โ€“ Add a domain without creating a DNS zone:

    hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --skip_dns
  • Skip Vhosts โ€“ Add a domain without creating virtual host configurations or starting the user's PHP and web server containers:

    hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --skip_vhost
  • Skip Containers โ€“ Add a domain without starting the user's PHP and web server containers:

    hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --skip_containers
  • Skip Caddy โ€“ Add a domain without creating a Caddy virtual host configuration:

    hitechcloudcli domains-add <DOMAIN_NAME> <USERNAME> --skip_caddy

Note: These options are primarily intended for bulk provisioning workflows (like cpanel account importer or user transfer) and advanced troubleshooting scenarios.

Suspendโ€‹

Suspend a domain name:

hitechcloudcli domains-suspend <DOMAIN_NAME>

Unsuspendโ€‹

Unsuspend a domain name:

hitechcloudcli domains-unsuspend <DOMAIN_NAME>

Deleteโ€‹

Delete a domain name:

hitechcloudcli domains-delete <DOMAIN_NAME> [--debug]

SSLโ€‹

Check SSL for domain, add custom certificate, view files.

hitechcloudcli domains-ssl <DOMAIN_NAME> [status|info|logs|auto|custom] [path/to/fullchain.pem path/to/key.pem]

Examplesโ€‹

Display command examples for a specific domain:

hitechcloudcli domains-ssl <DOMAIN_NAME>

Statusโ€‹

Display current SSL status for a domain:

hitechcloudcli domains-ssl <DOMAIN_NAME> status

Infoโ€‹

View ceritificate files a domain:

hitechcloudcli domains-ssl <DOMAIN_NAME> info

Logsโ€‹

View caddy SSL-related logs for a domain:

hitechcloudcli domains-ssl <DOMAIN_NAME> logs

Customโ€‹

Setup a custom SSL for a domain:

hitechcloudcli domains-ssl <DOMAIN_NAME> custom <CERT_PATH> <KEY_PATH>

Autoโ€‹

Switch to autoSSL for a domain (default):

hitechcloudcli domains-ssl <DOMAIN_NAME> auto

Docrootโ€‹

View and change docroot for a domain.

hitechcloudcli domains-docroot <DOMAIN_NAME> [update </var/www/html/>] --debug

Viewโ€‹

To view the current docroot for a domain:

hitechcloudcli domains-docroot <DOMAIN_NAME>

Updateโ€‹

To update a docroot for a domain:

hitechcloudcli domains-docroot <DOMAIN_NAME> update <docroot> [--debug]

DNSโ€‹

Manage DNS service and domain zones.

Reconfigโ€‹

To load new DNS zones into the Bind server:

hitechcloudcli domains-dns reconfig

Checkโ€‹

To check and validate a DNS zone for a domain:

hitechcloudcli domains-dns check <DOMAIN_NAME>

Reloadโ€‹

To reload a DNS zone for a single domain:

hitechcloudcli domains-dns reload <DOMAIN_NAME>

Showโ€‹

To display the DNS zone for a single domain:

hitechcloudcli domains-dns show <DOMAIN_NAME>

Listโ€‹

To list all domains with DNS zones on the server:

hitechcloudcli domains-dns list

Createโ€‹

To create a DNS zone for a domain:

hitechcloudcli domains-dns create <DOMAIN_NAME>

Deleteโ€‹

To delete a DNS zone for a domain:

hitechcloudcli domains-dns delete <DOMAIN_NAME>

Defaultโ€‹

To restore the default DNS zone for a domain:

hitechcloudcli domains-dns default <DOMAIN_NAME>

Countโ€‹

To display the total number of DNS zones present on the server:

hitechcloudcli domains-dns count

Configโ€‹

To check the main Bind configuration file for syntax errors:

hitechcloudcli domains-dns config

Startโ€‹

To start the DNS server:

hitechcloudcli domains-dns start

Restartโ€‹

To perform a soft restart of the Bind9 Docker container:

hitechcloudcli domains-dns restart

Hard Restartโ€‹

To perform a hard restart by terminating the container and starting it again:

hitechcloudcli domains-dns hard-restart

Stopโ€‹

To stop the DNS server:

hitechcloudcli domains-dns stop

DNSSECโ€‹

Enable DNSSEC for a domain and re-sign after changes the zone.

hitechcloudcli domains-dnssec <DOMAIN_NAME> [--update | --check]

Checkโ€‹

Check if domain has DNSSEC enabled:

hitechcloudcli domains-dnssec <DOMAIN_NAME> --check

Updateโ€‹

Configure/update DNSSEC for a domain:

hitechcloudcli domains-dnssec <DOMAIN_NAME> --update

HSTSโ€‹

Manage HSTS for a domain.

hitechcloudcli domains-hsts <DOMAIN_NAME> [on|off]

Statusโ€‹

Check HSTS status for a domain:

hitechcloudcli domains-hsts <DOMAIN_NAME> [on|off]

Enableโ€‹

Enable HSTS for a domain:

hitechcloudcli domains-hsts <DOMAIN_NAME> on

Disableโ€‹

Disable HSTS for a domain:

hitechcloudcli domains-hsts <DOMAIN_NAME> off

Editโ€‹

Edit VirtualHosts file for a domain or enter its docroot.

hitechcloudcli domains-edit <DOMAIN_NAME> [--ws]

Docrootโ€‹

cd into the domain docroot:

hitechcloudcli domains-edit <DOMAIN_NAME>

VHostโ€‹

Open the VirtualHost file for a domain using nano edit, and upon saving restart user webserver:

hitechcloudcli domains-edit <DOMAIN_NAME> --ws

Statsโ€‹

Parse caddy access logs for users domains and generate static html.

hitechcloudcli domains-stats <USERNAME> --debug

Generate stats for all domains:

hitechcloudcli domains-stats [--debug]

Generate stats for domains owned by a specific user:

hitechcloudcli domains-stats <USERNAME> [--debug]

Update NSโ€‹

Change nameservers for a single or all dns zones.

hitechcloudcli domains-update_ns <DOMAIN_NAME>|--all

Update the zone file for a specific domain:

hitechcloudcli domains-update_ns <DOMAIN_NAME>

Update all zone files:

hitechcloudcli domains-update_ns --all [-y]

Varnishโ€‹

Check Varnish status for domain, enable/disable Varnish caching.

hitechcloudcli domains-varnish <DOMAIN_NAME> <on|off> <--short>

Statusโ€‹

Display Varnish Cache status for domain:

hitechcloudcli domains-varnish <DOMAIN_NAME>

Enableโ€‹

Enable Varnish Cache for a domain :

hitechcloudcli domains-varnish <DOMAIN_NAME> on [--short]

Disableโ€‹

Disable Varnish Cache for a domain:

hitechcloudcli domains-varnish <DOMAIN_NAME> off [--short]

Whoownsโ€‹

Check which username owns a certain domain name.

To check owner for a domain:

hitechcloudcli domains-whoowns <DOMAIN_NAME>

To check owner and docker context for a domain:

hitechcloudcli domains-whoowns <DOMAIN_NAME> --context

To check owner and docroot for a domain:

hitechcloudcli domains-whoowns <DOMAIN_NAME> --docroot
Was this helpful?