The subdomain
utility is used to manage subdomains through CLI. By
using this utility, you can perform the following tasks:
- creating, renaming, and removing subdomains
- displaying information about subdomain configuration
- managing domain hosting parameters such as support of various
scripting languages, log settings, hard disk limits, and SSL/TLS
support - managing FTP user account for subdomains
Usage
subdomain <command> <subdomain_name> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
Example
The following command creates subdomain sample.example.com on the
domain example.com, sets the disk space quota for the subdomain to 1
GB, enables support for SSI, PHP, and SSL/TLS.
plesk bin subdomain --create subdomain -domain example.com -hard_quota 1G -ssi true -php true -ssl true
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create or -c |
<subdomain_name> |
Creates a subdomain on a specified domain. Required Use the asterisk (*) symbol to create a wildcard subdomain. |
To create the subdomain sample on the domain example.com: plesk bin subdomain --create sample -domain example.com or plesk bin subdomain -c sample -domain example.com |
…