This repository was archived by the owner on May 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Add command to create a siteΒ #1
Copy link
Copy link
Open
Description
Something like:
local-cli create-site --name="Name of the site" --domain=mysite.local --php=8.0.0 --mysql=8.0.16 --webserver=nginx --ssl=true --multisite=false
While none of the parameters would be required (except maybe name) and would just use defaults if not specified.
So you could simply do:
local-cli create-site --name="Name of the site"
It would be great to support all parameters (like in the UI) so that would include:
- Name
- Local site path
- Local site domain
- Blueprint (use a blueprint... there should also be an API to create blueprints...)
- Environment (preferred or custom)
- PHP version
- Web server
- Database
- WP Username
- WP Password
- WP Email
- Multisite (false/subdirectory/subdomain)
- SSL (verify SSL)
A couple other things that it should include:
- When using
sudoit should be able to do all the required tasks without needing a password (SSL, hosts file, etc.). - It should spit out a list of site information that can be picked up by whatever program is running the command. Particularly DB details (socket, etc.)
- Adding the ability to β the site would be a good addition for the UI.
I'm sure there are other things that would be beneficial to this API but that's all I have for now.
blackcolt
Metadata
Metadata
Assignees
Labels
No labels