Publish release notes, change log version, and theme version in one easy command
wp package install [email protected]:peterjohnhunt/wpcli-publish-command.git
run wp publish help after installing
Publish version of site and theme
## OPTIONS
<version>...
: Version or subcommand followed by version number
---
[--message=<message>]
: release notes if full editor is not needed
---
[--command=<command>]
: set command
[--folder=<folder>]
: set folder for plugin or theme
## EXAMPLES
wp publish major|minor|patch|1.0.0
wp publish site major|minor|patch|1.0.0
wp publish theme <theme> major|minor|patch|1.0.0
wp publish plugin <plugin> major|minor|patch|1.0.0
If you’re getting a SSL error saying the certificate is expired, here’s how to fix (on macOS):
- Download the latest certificate here
- Move that certificate to
/Applications/MAMP/Library/OpenSSL/certs/cacert.pem - Open your current
php.inifile (to check the right folder, usewhich php) - Update the
openssl.cafileline so it's like this:openssl.cafile="/Applications/MAMP/Library/OpenSSL/certs/cacert.pem" - Restart MAMP server