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

[CLI] Rewrite the lemper-cli with new structure #92

Open
joglomedia opened this issue Jul 22, 2021 · 0 comments
Open

[CLI] Rewrite the lemper-cli with new structure #92

joglomedia opened this issue Jul 22, 2021 · 0 comments
Assignees

Comments

@joglomedia
Copy link
Owner

joglomedia commented Jul 22, 2021

Proposed command line structure

Firstly, change the command line name from lemper-cli to lemperctl

Create new site / vhost (web app)

lemperctl [site/app] [create/add] example.com --type=wordpress [email protected] \
                --runtime-user=${USER} --install-skeleton --webroot=${HOME}/example.com
Usage:  lemperctl [site/app] [create/add] DOMAIN [OPTIONS] 

Delete existing site / vhost

lemperctl [site/app] [remove/delete] example.com --purge
Options:
  -p, --purge    Force the removal of site artifacts (including web root directory, databases, stack configs, etc)

Disable active site / vhost (from lemper manage <=> update)

lemperctl [site/app] disable example.com 

an alias of

lemperctl [site/app] update example.com --disable

Enable inactive site / vhost

lemperctl [site/app] enable example.com

an alias of

lemperctl [site/app] update example.com --enable

Utility to manage site / vhost

Move lemper manage to lemper update

lemperctl [site/app] update example.com --enable-ssl
Usage:  lemperctl [site/app] update [OPTIONS] DOMAIN [DOMAIN...]
Options:
  --cors-enable          Enable CORS
  --cors-disable         Disable CORS
  --fail2ban-enable    Enable Fail2ban
  --fail2ban-disable   Disable Fail2ban
  --ssl-disable            Disable SSL/HTTPS
  --ssl-enable             Enable SSL/HTTPS
  --ssl-remove            Disable and remove SSL configuration
  --ssl-renew              Renew SSL certificate
  --fastcgi-cache-enable   Enable fastcgi cache
  --fastcgi-cache-disable  Disable fastcgi cache
  --pagespeed-enable   Enable pagespeed nginx module (DEPRECATION issue https://github.com/joglomedia/LEMPer/issues/178)
  --pagespeed-disable   Disable mod-pagespeed nginx module (DEPRECATION)

Manage Stack services

lemperctl stack restart --service=nginx --service=php-fpm --service=mysql
lemperctl stack restart --service=all
Usage:  lemperctl stack [start|stop|restart|reload|status] [OPTIONS]
@joglomedia joglomedia self-assigned this Jul 22, 2021
@joglomedia joglomedia changed the title Rewrite the LEMPer's command line lemper-cli using new structure [CLI] Rewrite the lemper-cli with new structure Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant