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

OptionDescriptionRequiredDefaultExample
--server=Specifies the server where the new site will be created.YesN/A--server=blue-ocean
--domain=Defines the domain name for the new site.YesN/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.Noploi--system-user=myuser
--sudoGrants sudo privileges to the system user. Only applicable if --system-user is not ploi.NoDisabled--sudo
--project-type=Specifies the type of project (laravel, nodejs, statamic, craft-cms, symfony, wordpress, octobercms, cakephp). Helps configure the site appropriately.NoN/A--project-type=laravel