Create a site
The site:create
command allows you to create a new site on a specified server with customizable options for domain, web directory, system user, project type, and more.
ploi site:create
You can pass a few arguments as well if you want to skip the questions.
Options
Option | Description | Required | Default | Example |
---|---|---|---|---|
--server= |
Specifies the server where the new site will be created. | Yes | N/A | --server=blue-ocean |
--domain= |
Defines the domain name for the new site. | Yes | N/A | --domain=example.com |
--web-directory= |
Sets the web directory for the site. | No | /public |
--web-directory=/var/www |
--system-user= |
Specifies the system user to run the site. | No | ploi |
--system-user=myuser |
--sudo |
Grants sudo privileges to the system user. Only applicable if --system-user is not ploi . |
No | Disabled | --sudo |
--project-type= |
Specifies the type of project (laravel , nodejs , statamic , craft-cms , symfony , wordpress , octobercms , cakephp ). Helps configure the site appropriately. |
No | N/A | --project-type=laravel |