Currently, ee shell brings up the shell of the site's php container, where the wp commands, composer etc., can be run.
Need to add provision such that shell of any service of that site can be brought up with choice of user. php container shell can be default if no service is specified.
ee shell example.com --service=nginx
ee shell example.com --service=php --user=root
Also, capability to run certain commands non-interactive:
ee shell example.com --command='wp post delete $(wp post list --post_type='post' --format=ids)'
ee shell example.com --service=nginx --command='nginx -t && nginx -s reload'
Currently,
ee shell
brings up the shell of the site'sphp
container, where thewp
commands,composer
etc., can be run.Need to add provision such that shell of any service of that site can be brought up with choice of user.
php container
shell can be default if no service is specified.Also, capability to run certain commands non-interactive: