Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to create a site #1

Open
benjaminprojas opened this issue Feb 9, 2021 · 3 comments
Open

Add command to create a site #1

benjaminprojas opened this issue Feb 9, 2021 · 3 comments

Comments

@benjaminprojas
Copy link

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:

  1. When using sudo it should be able to do all the required tasks without needing a password (SSL, hosts file, etc.).
  2. 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.)
  3. 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.

@runebakjacobsen
Copy link

I would love to take a look at this @claygriffiths, if you need any help in this repo.

@dsnid3r
Copy link

dsnid3r commented Jul 7, 2022

Any update on this? Might be able to help with this.

@dsnid3r
Copy link

dsnid3r commented Jul 7, 2022

Following up on this - we'd just need to integrate with this, correct? @bgturner can you possibly confirm? https://getflywheel.github.io/local-addon-api/modules/_local_graphql_.html#addsiteinput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants