WP CLI commands
The Patchstack WordPress plugin provides you access to the following WP CLI command as of version 2.1.25.
Before running this command, the Patchstack WordPress plugin should be installed on the site. You can use the WP CLI command below to install it.
wp patchstack activate
This command will connect and activate the license of the Patchstack WordPress plugin. It is important to provide the proper values for the
These values can be found at the following location:
- Go to the Patchstack App and log in
- Go to Sites from the left menu
- Click on the URL of your site
- Click on the Settings tab
- On the right side, the API key section contains the full API key
- Now in order to use this value in the WP CLI:
- You can either copy this one and as <id> you enter the value on the right side of the dash and as <secret> you enter the left side of the dash
- Or click on “Looking for the old Site ID and Site Secret Key format? Click here.” and you will be presented with the <id> and <secret> values directly