Usage: cpanel list features

List a cPanel account’s features.

EXAMPLE
    \033[1;34mcpanel list features\033[00m

See a sample of the JSON result data at:
https://api.docs.cpanel.net/openapi/cpanel/operation/list_features/

---

Usage: cpanel get quota

Get the cPanel account’s total disk quota information in megabytes.

EXAMPLE
    \033[1;34mcpanel get quota\033[00m

See a sample of the JSON result data at:
https://api.docs.cpanel.net/openapi/cpanel/operation/get_quota_info/

---

Usage: cpanel get usage

Show resource usage and some statistics, like bandwidth, number of subdomains,
disk usage, number of mail filters, etc.

EXAMPLE
    \033[1;34mcpanel get usage\033[00m

See a sample of the JSON result data at:
https://api.docs.cpanel.net/openapi/cpanel/operation/get_usages/

---

Usage: cpanel get stats STAT...

Show detailed data and statistics, like hostname, file usage, database usage,
dedicated IPs, etc.

STAT is the name of the statistic you want, you can provide a list of STATs to
be displayed. For a complete list ot STAT names, see ‘display parameters’ at:
https://api.docs.cpanel.net/openapi/cpanel/operation/get_stats/

EXAMPLES
    \033[1;34mcpanel get stats hostname\033[00m
    \033[1;34mcpanel get stats machinetype cpanelversion\033[00m

See a sample of the JSON result data at:
https://api.docs.cpanel.net/openapi/cpanel/operation/get_stats/

---

Usage: cpanel list accounts
    cpanel get account

\033[1mCOMMANDS\033[0m

\033[1mlist accounts\033[0m
    List basic information of the main cPanel account.

    EXAMPLE
        \033[1;34mcpanel list accounts\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_accounts/

\033[1mget account\033[0m
    Show detailed information of the main account.

    EXAMPLE
        \033[1;34mcpanel get account\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/Variables-get_user_information/

---

Usage: cpanel list subaccounts
    cpanel get subaccount GUID

\033[1mCOMMANDS\033[0m

\033[1mlist subaccounts\033[0m
    List the sub-accounts of the main cPanel account, along with detailed information
    of each sub-account.

    EXAMPLE
        \033[1;34mcpanel list subaccounts\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/UserManager-list_users/

\033[1mget subaccount GUID\033[0m
    Show detailed information of a sub-account, identified by its GUID. To get
    this GUID, use ‘cpanel list subaccounts’. Note that only sub-accounts with a
    sub_account_exists flag set to 1 can be queried.

    EXAMPLE
        \033[1;34mcpanel get subaccount EXAMPLE1:EXAMPLE.COM:564CD663:FE50072F2620B50988EA4E5F46022546FBE6BDDE3C36C2F2534F4967C661EC37\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/lookup_user/

---

Usage: cpanel create backup home [EMAIL]
    cpanel create backup ftp USERNAME PASSWORD HOST [DIRECTORY] [EMAIL]
    cpanel create backup scp USERNAME PASSWORD HOST [DIRECTORY] [EMAIL]
    cpanel list backups

\033[1mCOMMANDS\033[0m

All ‘create backup’ commands create a backup tarball (a .tar.gz file) of
the user’s home directory along with other account data, such as the crontab,
API tokens, log files and DB data. The backup tarball’s name is
backup-MM.DD.YYYY_HH-MM-SS_USERNAME.tar.gz.

If you pass an optional EMAIL argument, the backup engine will send a
confirmation email after it completes the backup.

\033[1mcreate backup home [EMAIL]\033[0m
    Create a backup tarball and store it in the user’s home directory itself.

\033[1mcreate backup ftp USERNAME PASSWORD HOST [DIRECTORY] [EMAIL]\033[0m
    Create a backup tarball and store it on a remote FTP server.

    HOST is the hostname of the remote FTP server.
    USERNAME and PASSWORD are the credentials to log in to it.
    Optional DIRECTORY is the destination directory on the remote server;
    by default use the remote user’s login directory. Note that DIRECTORY
    is not an absolute path, but a path relative to the login directory, i.e.,
    /public corresponds to <remote login directory>/public.

\033[1mcreate backup scp USERNAME PASSWORD HOST [DIRECTORY] [EMAIL]\033[0m
    Create a backup tarball and store it on a remote SCP server.

    USERNAME, PASSWORD, HOST and DIRECTORY are the same as for ‘create backup ftp’.

    EXAMPLES
        \033[1;34mcpanel backup home\033[00m
        \033[1;34mcpanel backup home scott@example.com\033[00m
        \033[1;34mcpanel backup ftp scott tiger ftp.example.com\033[00m
        \033[1;34mcpanel backup ftp scott tiger ftp.example.com /backup\033[00m
        \033[1;34mcpanel backup scp scott tiger ssh.example.com /backup scott@example.com\033[00m

\033[1mlist backups\033[0m
    List the account’s backup files.

    EXAMPLE
        \033[1;34mcpanel list backups\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_backups/

---

Usage: cpanel update cache
    cpanel read cache

\033[1mCOMMANDS\033[0m

\033[1mupdate cache\033[0m
    Create web browser cached file override ID.

    EXAMPLE
        \033[1;34mcpanel update cache\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/update/

\033[1mread cache\033[0m
    Return web browser cached file override ID.

    EXAMPLE
        \033[1;34mcpanel read cache\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/CacheBuster-read/

---

Usage: cpanel list locales
    cpanel get locale
    cpanel set locale LOCALE

\033[1mCOMMANDS\033[0m

\033[1mlist locales\033[0m
    List all the available locales (language and conventions) for the cPanel user
    interface.

    EXAMPLE
        \033[1;34mcpanel list locales\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_locales/

\033[1mget locale\033[0m
    Return the current locale (language and conventions) used for the cPanel user
    interface.

    EXAMPLE
        \033[1;34mcpanel get locale\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_attributes/

\033[1mset locale LOCALE\033[0m
    Set the cPanel user interface locale (language and conventions) to LOCALE.
    Use ‘cpanel list locales’ for a list of available locales.
    In general terms, a LOCALE corresponds to a ISO 639-1 two-letter language code.

    EXAMPLE
        \033[1;34mcpanel set locale bg\033[00m  # Set UI to Bulgarian

---

Usage: cpanel list styles
    cpanel get style
    cpanel set style NAME
    cpanel default style NAME

\033[1mCOMMANDS\033[0m

A style is a variation of a user interface theme for cPanel. For example, the
‘paper lantern’ theme has four styles: ‘basic’, ‘dark’, ‘light’ and ‘glass’.

\033[1mlist styles\033[0m
    Return all the available user interface styles.

    EXAMPLE
        \033[1;34mcpanel list styles\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list/

\033[1mget style\033[0m
    Return the current user interface style.

    EXAMPLE
        \033[1;34mcpanel get style\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/current/

\033[1mset style NAME\033[0m
    Set the current user interface style to NAME.
    NAME must be one of ‘basic’, ‘dark’, ‘light’ or ‘glass’

    EXAMPLE
        \033[1;34mcpanel set style dark\033[00m

\033[1mdefault style NAME\033[0m
    Set the default user interface style to NAME.
    NAME must be one of ‘basic’, ‘dark’, ‘light’ or ‘glass’

    EXAMPLE
        \033[1;34mcpanel default style basic\033[00m

---

Usage: cpanel list themes
    cpanel get theme
    cpanel set theme NAME

A theme is a customized look and feel for the cPanel user interface. The default
cPanel theme is ‘jupiter’; another popular theme is ‘paper lantern’.

\033[1mCOMMANDS\033[0m

\033[1mlist themes\033[0m
    Return all the available themes.

    EXAMPLE
        \033[1;34mcpanel list themes\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/Themes::list/

\033[1mget theme\033[0m
    Return the current theme.

    EXAMPLE
        \033[1;34mcpanel get theme\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_theme_base/

\033[1mset theme NAME\033[0m
    Set the current theme to NAME.
    NAME must be one the available themes reported by ‘cpanel list themes’.

    EXAMPLE
        \033[1;34mcpanel set theme paper_lantern\033[00m

---

Usage: cpanel list dir indexing PATH
    cpanel get dir indexing PATH
    cpanel set dir indexing PATH TYPE
    cpanel list dir privacy PATH
    cpanel get dir privacy PATH
    cpanel enable dir privacy PATH
    cpanel disable dir privacy PATH
    cpanel add dir user PATH USER PASSWORD
    cpanel delete dir user PATH USER
    cpanel list dir users PATH
    cpanel list dir protection PATH

\033[1mINDEXING COMMANDS\033[0m

The indexing of a remote directory controls how to present that directory
to a web browser if no default HTML index page is found.

There are four possible index settings:

- ‘inherit’: Use the parent directory’s setting.
- ‘disabled’ (No Indexing): do not list the directory contents.
- ‘standard’ (Show Filename Only): list only the directory’s file names.
- ‘fancy’: (Show Filename and Description) list the directory’s file names, sizes and types.

cPanel uses a .htaccess directive in the remote directory to control the
index settings. For instance, for ‘fancy’, it adds the following to htaccess:

    Options +Indexes
    IndexOptions +HTMLTable +FancyIndexing

See https://docs.cpanel.net/cpanel/advanced/indexes/ for further information.

Note that the PATH in all commands below is not absolute, but relative to the
remote login directory, i.e., /public_html corresponds to
<remote login directory>/public_html.

\033[1mlist dir indexing PATH\033[0m
    List the index settings for remote PATH and its subdirectories (children).

    EXAMPLE
        \033[1;34mcpanel list dir indexing /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/DirectoryIndexes-list_directories/

\033[1mget dir indexing PATH\033[0m
    Get the index setting for remote PATH only.

    EXAMPLE
        \033[1;34mcpanel get dir indexing /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_indexing/

\033[1mset dir indexing PATH TYPE\033[0m
    Set the index setting for remote PATH. Possible values for TYPE are
    ‘inherit’, ‘disabled’, ‘standard’ or ‘fancy’.

    EXAMPLE
        \033[1;34mcpanel set dir indexing /public_html fancy\033[00m

\033[1mPRIVACY COMMANDS\033[0m

cPanel can password-protect remote directories for privacy. Any attempt to
access a private directory using a web browser will prompt for a
username and password.

The actual underlying authentication method is Basic HTTP authentication;
these users and passwords are local to the directory, they are not cPanel users.

Note that the PATH in all commands below is not absolute, but relative to the
remote login directory, i.e., /public_html corresponds to
<remote login directory>/public_html.

\033[1mlist dir privacy PATH\033[0m
    List the privacy settings for remote PATH and its subdirectories (children).

    EXAMPLE
        \033[1;34mcpanel list dir privacy /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/DirectoryPrivacy-list_directories/

\033[1mget dir privacy PATH\033[0m
    Get the privacy settings for remote PATH only.
    You can enable or disable password protection using
    ‘cpanel enable dir privacy’ or ‘cpanel disable dir privacy’ (see below).

    EXAMPLE
        \033[1;34mcpanel get dir privacy /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/is_directory_protected/

\033[1menable dir privacy PATH\033[0m
    Enable password protection for PATH. Note that you need to add users
    using ‘cpanel add dir user’ (see below) to grant access to PATH.

    EXAMPLE
        \033[1;34mcpanel enable dir privacy /public_html\033[00m

\033[1mdisable dir privacy PATH\033[0m
    Disable password protection for PATH.

    EXAMPLE
        \033[1;34mcpanel disable dir privacy /public_html\033[00m

\033[1mUSER MANAGEMENT COMMANDS\033[0m

cPanel grants access to remote password-protected directories using
ad hoc users and passwords specific to every directory. Use the
commands below to manage these users.

cPanel stores the credentials in a .htpasswd file.
See https://en.wikipedia.org/wiki/.htpasswd for further information.

Note that the PATH in all commands below is not absolute, but relative to the
remote login directory, i.e., /public_html corresponds to
<remote login directory>/public_html.

\033[1madd dir user PATH USER PASSWORD\033[0m
    Add USER with corresponding PASSWORD to the list of allowed users
    for PATH.

    EXAMPLE
        \033[1;34mcpanel add dir user /public_html scott tiger\033[00m

\033[1mdelete dir user PATH USER\033[0m
    Remove USER from the list of allowed users for PATH.

    EXAMPLE
        \033[1;34mcpanel delete dir user /public_html scott\033[00m

\033[1mlist dir users PATH\033[0m
    List allowed users for PATH.

    EXAMPLE
        \033[1;34mcpanel list users /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/DirectoryPrivacy::list_users/

\033[1mLEECH PROTECTION COMMANDS\033[0m

Leech protection adds some basic measures against the abuse of
password-protected directories. The system allows a maximum number of
logins per hour for a leech-protected directory.

See https://docs.cpanel.net/cpanel/security/leech-protection/ for further information.

\033[1mlist dir protection PATH\033[00m
    List leech protection status for PATH and its subdirectories (children).

    EXAMPLE
        \033[1;34mcpanel list dir protection /public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/DirectoryProtection-list_directories/

---

Usage: cpanel check dns DOMAIN
    cpanel authoritative dns DOMAIN
    cpanel lookup dns
    cpanel list dynamic dns
    cpanel create dynamic dns SUBDOMAIN [DESCRIPTION]
    cpanel recreate dynamic dns ID
    cpanel update dynamic dns ID DESCRITPION
    cpanel delete dynamic dns ID

\033[1mCOMMANDS\033[0m

\033[1mcheck dns DOMAIN\033[0m
    Check if DOMAIN resolves to the cPanel server.

    EXAMPLE
        \033[1;34mcpanel check dns example.com\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/ensure_domains_reside_only_locally/

\033[1mcheck authoritative dns DOMAIN\033[0m
    Tell if cPanel server is the authoritative server for DOMAIN.

    EXAMPLE
        \033[1;34mcpanel authoritative dns example.com\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/has_local_authority/

\033[1mlookup dns DOMAIN\033[0m
    Return DNS zone information about DOMAIN.

    EXAMPLE
        \033[1;34mcpanel lookup dns DOMAIN\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/dns-lookup/

\033[1mlist dynamic dns\033[0m
    List the Dynamic DNS domains for your cPanel user.

    EXAMPLE
        \033[1;34mcpanel list dynamic dns\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/dynamicdns-list/

\033[1mcreate dynamic dns SUBDOMAIN [DESCRIPTION]\033[0m
    Create a new Dynamic DNS entry attached to SUBDOMAIN.
    Optionally include a human-readable DESCRIPTION.
    Return an ID which you can later use in a web call
    https://example.com/cpanelwebcall/<ID>.

   For further information see:
   https://docs.cpanel.net/cpanel/domains/dynamic-dns/

    EXAMPLES
        \033[1;34mcpanel create dynamic dns homeserver.example.com\033[00m
        \033[1;34mcpanel create dynamic dns homeserver.example.com "A home server with variable IP"\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/dynamicdns-create/

\033[1mrecreate dynamic dns ID\033[0m
    Delete and create again a Dynamic DNS entry identified by ID.
    Return a new ID. Use ‘cpanel list dynamic dns’ to get a list of IDs and
    associated subdomains.

    EXAMPLE
        \033[1;34mcpanel recreate dynamic dns gziugyxxjwnamqtwysgmvrurplmafxpj\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/dynamicdns-recreate/

\033[1mupdate dynamic dns ID DESCRIPTION\033[0m
    Update the DESCRIPTION of Dynamic DNS entry identified by ID.

    EXAMPLE
        \033[1;34mcpanel update dynamic dns gziugyxxjwnamqtwysgmvrurplmafxpj "A home server with variable IP"\033[00m

\033[1mdelete dynamic dns ID\033[0m
    Delete a Dynamic DNS entry identified by ID. Use ‘cpanel list dynamic dns’
    to get a list of IDs and associated subdomains.

    EXAMPLE
        \033[1;34mcpanel delete dynamic dns gziugyxxjwnamqtwysgmvrurplmafxpj\033[00m

---

Usage: cpanel list domains
    cpanel list domain data
    cpanel get domain data DOMAIN
    cpanel get domain aliases

\033[1mCOMMANDS\033[0m

\033[1mlist domains\033[0m
    List domains for the cPanel account’s.

    EXAMPLE
        \033[1;34mcpanel list domains\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_domains/

\033[1mlist domain data\033[0m
    Get hosting data for all the cPanel account’s domains.

    EXAMPLE
        \033[1;34mcpanel list domain data\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/domains_data/

\033[1mget domain data DOMAIN\033[0m
    Get hosting data for DOMAIN. Use ‘cpanel list domains’
    to get a list of domains.

    EXAMPLE
        \033[1;34mcpanel get domain data example.com\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/single_domain_data/

\033[1mget domain aliases\033[0m
    List the built-in subdomain aliases for an account’s main domain.

    EXAMPLE
        \033[1;34mcpanel get domain aliases\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/main_domain_builtin_subdomain_aliases/

---

Usage: cpanel get log settings
    cpanel set log settings SETTING...
    cpanel unset log settings SETTING...
    cpanel list log archives

cPanel log archival settings are:

- ‘archive’
- ‘prune’

If ‘archive’ is set, log files will be archived to your home directory
after the system processes statistics.

If ‘prune’ is set, cPanel will remove the previous month’s archived logs
at the end of every month.

\033[1mCOMMANDS\033[0m

\033[1mget log settings\033[0m
    Get the account’s log archival settings.

    EXAMPLE
        \033[1;34mcpanel get log settings\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_settings/

\033[1mset log settings SETTING...\033[0m
    Set the account’s log archival settings.
    SETTING is ‘archive’ or ‘prune’.

    EXAMPLES
        \033[1;34mcpanel set log settings archive\033[00m
        \033[1;34mcpanel set log settings prune\033[00m
        \033[1;34mcpanel set log settings archive prune\033[00m

\033[1munset log settings SETTING...\033[0m
    Unset the account’s log archival settings.
    SETTING is ‘archive’ or ‘prune’.

    EXAMPLES
        \033[1;34mcpanel unset log settings archive\033[00m
        \033[1;34mcpanel unset log settings prune\033[00m
        \033[1;34mcpanel unset log settings archive prune\033[00m

\033[1mlist log archives\033[0m
    List the account’s archived log files.

    EXAMPLE
        \033[1;34mcpanel list log archives\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_archives/

---

Usage: cpanel get bandwidth services
    cpanel get bandwidth retention

For further information see:
https://docs.cpanel.net/cpanel/metrics/bandwidth/

\033[1mCOMMANDS\033[0m

\033[1mget bandwidth services\033[0m
    Return a list of services (by protocol) being monitored in bandwidth data.

    EXAMPLE
        \033[1;34mcpanel get bandwidth services\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_enabled_protocols/

\033[1mget bandwidth retention\033[0m
    Get the collection interval and retention periods for bandwidth data.

    EXAMPLE
        \033[1;34mcpanel get bandwidth services\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_retention_periods/

---

Usage: cpanel list files [DIRECTORY]
    cpanel glob files PARTIALPATH
    cpanel get file info PATH
    cpanel cat file FILE
    cpanel write file FILE
    cpanel upload file DIRECTORY LOCALFILE
    cpanel delete file trash [DAYS]

Arguments:

- Optional DIRECTORY is a remote directory
- PATH can refer to either a remote directory or a remote file
- PARTIALPATH is an incomplete remote PATH
- FILE is a remote file
- LOCALFILE is a local file

Use ‘/’ to separate subdirectory components in DIRECTORY, PATH,
PARTIALPATH or FILE. For example, a DIRECTORY could be
public_html/images or a PATH could be public_ftp/.htacccess.

All the remote arguments are relative to the remote user’s login
directory, e.g., public corresponds to <remote login directory>/public.

\033[1mCOMMANDS\033[0m

\033[1mlist files DIRECTORY\033[0m
    Return a list of files and subdirectories in DIRECTORY

    EXAMPLE
        \033[1;34mcpanel list files public_html\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_files/

\033[1mglob files PARTIALPATH\033[0m
    Return a list of files and subdirectories whose names start
    with PARTIALPATH. For instance, /public matches /public_html and
    /public_ftp.

    EXAMPLE
        \033[1;34mcpanel glob files /public\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/autocompletedir/

\033[1mget file info PATH\033[0m
    Return file information about PATH.

    EXAMPLES
        \033[1;34mcpanel get file info ssl\033[00m
        \033[1;34mcpanel get file info .bashrc\033[00m
        \033[1;34mcpanel get file info public_html/.htaccess\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_file_information/

\033[1mcat file FILE\033[0m
    Return the contents of FILE. Note that only UTF-8 encoded files are supported.

    EXAMPLES
        \033[1;34mcpanel cat file .mysqlhistory\033[00m
        \033[1;34mcpanel cat file public_html/.htaccess\033[00m

\033[1mwrite file FILE CONTENTS\033[0m
    Write CONTENTS as a remote text FILE.
    Note that only UTF-8 encoded content is supported.
    Escape codes, such as ‘\\n’, ‘\\t’ and others, are supported.

    EXAMPLES
        \033[1;34mcpanel write file public_html/index.txt "Hallo\\nTschüss\\n"\033[00m

\033[1mupload file DIRECTORY LOCALFILE\033[0m
    Upload a LOCALFILE to remote DIRECTORY .
    If the remote DIRECTORY doesn’t exist, it will be created.

    EXAMPLES
        \033[1;34mcpanel upload file public_html index.html\033[00m

\033[1mdelete file trash [DAYS]\033[0m
    Delete the contents of the .trash directory in the user’s home.
    Optional DAYS will only delete files older than DAYS days.
    By default, all files are deleted.

    EXAMPLES
        \033[1;34mcpanel delete file trash\033[00m
        \033[1;34mcpanel delete file trash 31\033[00m

---

Usage: cpanel list mail accounts
    cpanel list mail filters ACCOUNT
    cpanel get mail filter ACCOUNT FILTERNAME
    cpanel set mail filter ACCOUNT FILE
    cpanel delete mail filter ACCOUNT FILTERNAME

\033[1mCOMMANDS\033[0m

\033[1mlist mail accounts\033[0m
    List cPanel email accounts.

    EXAMPLE
        \033[1;34mcpanel list mail accounts\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_pops/

\033[1mlist mail filters ACCOUNT\033[0m
    List mail filters associated to ACCOUNT. Output is a JSON-formatted
    array of filter names.
    ACCOUNT is the name of a cPanel email account, usually user@domain

    EXAMPLE
        \033[1;34mcpanel list mail filters scott@example.com\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/list_filters/

\033[1mget mail filter ACCOUNT FILTERNAME\033[0m
    Return a JSON-formatted description of email filter FILTERNAME associated
    to email ACCOUNT. To get a list of current filter names, use
    ‘cpanel list mail filters ACCOUNT’

    EXAMPLE
        \033[1;34mcpanel get mail filter scott@example.com spamkiller\033[00m

    See a sample of the JSON result data at:
    https://api.docs.cpanel.net/openapi/cpanel/operation/get_filter/

\033[1mset mail filter ACCOUNT FILE\033[0m
    Create or update an email filter associated with email ACCOUNT.
    If the filter already exists, it updates it; otherwise, it creates a new filter.
    Use a JSON FILE to describe the filter rules. This JSON FILE has the same
    textual format as the output from ‘cpanel get mail filter’, so the easiest way
    to create a new filter is to dump an existing filter into a filter.json file,
    edit it and then upload it with ‘cpanel set mail filter’.
    See the EXAMPLE below.

    EXAMPLE
        \033[1;34mcpanel get mail filter scott@example.com spamkiller > filter.json\033[00m
        \033[1;34mcpanel set mail filter scott@example.com filter.json\033[00m

\033[1mdelete mail filter ACCOUNT FILTERNAME\033[0m
    Delete email filter FILTERNAME associated to ACCOUNT. To get a list of current
    filter names, use ‘cpanel list mail filters ACCOUNT’

    EXAMPLE
         \033[1;34mcpanel delete mail filter scott@example.com spamkiller\033[00m

---
