Added WP-CLI support to workspace (#1748)

* Added WP-CLI support
* Updated documentation for WP-CLI
This commit is contained in:
Dmitry Ossipov
2019-02-09 18:48:28 +07:00
committed by Shao Yu-Lung (Allen)
parent 5edf3f398b
commit c7aa535598
4 changed files with 18 additions and 1 deletions

View File

@ -174,6 +174,21 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \
drush core-status \
;fi
###########################################################################
# WP CLI:
###########################################################################
# The command line interface for WordPress
USER root
ARG INSTALL_WP_CLI=false
RUN if [ ${INSTALL_WP_CLI} = true ]; then \
curl -fsSL -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | bash && \
chmod +x /usr/local/bin/wp \
;fi
###########################################################################
# SSH2:
###########################################################################