Skip to main content
Version: 2.1.0

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?