Skip to content

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 plugin install patchstack --activate

wp patchstack activate

wp patchstack activate <id> <secret>
Example: wp patchstack activate 123456 2b072e8b60402e30d481df351fc08183906254e0

This command will connect and activate the license of the Patchstack WordPress plugin. It is important to provide the proper values for the and placeholders.

These values can be found at the following location:

  1. Go to the Patchstack App and login.
  2. Go to “My Sites” from the left menu.
  3. Click on the URL of your site.
  4. Click on the “Settings” tab.
  5. On the right side, the API key section contains the full API key.
  6. Now in order to use this value in the WP CLI:
    1. You can either copy this one and as you enter the value on the right side of the dash and as you enter the left side of the dash.
    2. Or click on “Looking for the old Site ID and Site Secret Key format? Click here.” and you will be presented with the and values directly.