Sign inSign up

michaloo/wp-cli

By michaloo

Updated over 8 years ago

Docker image with wp-cli installed

Image
2

2.7K

michaloo/wp-cli repository overview

Docker image with WP-CLI installed

Want to run WP-CLI command over your Wordpress installation? Use this image :)

Build Status

Installation

docker pull michaloo/wp-cli

Usage

View WP-CLI info:

docker run -it --rm michaloo/wp-cli wp --info

View your Wordpress installation version (assuming that it is in pwd):

docker run -it --rm -v `pwd`:/var/www/html michaloo/wp-cli wp core version

Want install custom WP-CLI packages?

Extend this image in your own Dockerfile. Just like in dockerpresso-cli image:

# Uses wp-cli docker image
FROM michaloo/wp-cli

# And adds dockerpresso plugins:
RUN wp package install michaloo/wp-cli-environmentalize

Notes

The USER is switched to www-data here to satisfy WP-CLI requirements.

The WORKDIR is changed to /var/www/html, HOME is set to /var/www, the WP-CLI bash completion is installed there.

Used in

Following projects use this image:

Tag summary

Content type

Image

Digest

Size

166.2 MB

Last updated

over 8 years ago

docker pull michaloo/wp-cli