Plesk

subdomain: Subdomains

The subdomain utility is used to manage subdomains through CLI. By
using this utility, you can perform the following tasks:

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 -domain option.

Use the asterisk (*) symbol to create a wildcard subdomain.
Site visitors will be redirected to this subdomain regardless
of the subdomain name they enter in a browser.

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

Exit mobile version