0.1.2 • Published 5 years ago

wordpress-in-docker v0.1.2

Weekly downloads
-
License
Unlicense
Repository
gitlab
Last release
5 years ago

**WordPress in Docker**

Command-line utility for local development with WordPress.

Installation

npm install -g wordpress-in-docker

You need both Docker and Docker-Compose installed on your dev machine.

Use

The famous 1 command install

wpd init

Run this in your project directory. You will be prompted to supply a name for your WordPress theme. Then, it will pull the required Docker images, and configure them for development. This might take a little while the first time you run it.

Once it is ready, you should see the WordPress installation screen appear in your browser. A directory will have been created for your theme. You are ready to start development.

CLI reference

Usage: wpd [options] [command]

OptionsDescription
-V, --versionoutput the version number
-h, --helpoutput usage information
CommandsDescription
init [options]Initialise a wordpress-in-docker project.
upStart up an existing wordpress-in-docker setup.
shellSpawn an interactive shell inside the WordPress container.
export [options]Export WordPress files and/or a database dump from the Docker containers to the host machine.

up

Start up an existing wordpress-in-docker setup.

Usage: wpd up

OptionsDescription
-h, --helpoutput usage information

init

Initialise a wordpress-in-docker project.

Usage: wpd init [options]

OptionsDescription
-t, --theme <name>Create a blank WordPress theme with this name.
-h, --helpoutput usage information

export

Export WordPress files and/or a database dump from the Docker containers to the host machine.

Usage: wpd export [options]

OptionsDescription
-d, --databaseCreate a blank WordPress theme with this name.
-w, --wordpressCreate a copy of the WordPress directory.
-h, --helpoutput usage information

References


0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago