A collection of WP-CLI helpers for our team's development workflow.
Important: These are extremely opinionated to match our development preferences and may not be useful to others. Functionality may also change unexpectedly as our workflows evolve.
Prerequisites:
- A global copy of WP-CLI
To install the package run the following command:
wp package install eighteen73/wp-cli-toolsYou should ensure that you are running the latest copy of this package, especially before setting up new websites.
To update the package run the following command:
wp package updateAvailable commands are listed below. Generally they are designed for use on our Nebula websites unless stated otherwise. For full usage instructions please refer to the package docs.
create-site- Create new websitesync- Import the remote website's databasefirst-sync- Initialise a local website using a remote databasestyle-guide- Add predetermined pages of content for visual checks and sign-off
For development, you'll probably want to run a local clone of this package.
wp package uninstall eighteen73/wp-cli-tools
wp package install /local/path/to/wp-cli-tools