Skip to main content

Create a deployment user

To let your Continuous Integration pipeline connect to Continuous Delivery for Digital Goods and Downloads, you need a WordPress user with specific permissions and an application password. If you want to use another authentication method, check out http://v2.wp-api.org/guide/authentication/.

tip

To keep things separated, you should create a new dedicated user for that task. Note down the user's name (${WORDPRESS_DEPLOYER_USERNAME}).

Required permissions

By default, Continuous Delivery for Digital Goods and Downloads requires that the user

  • has the username admin, administrator or deployer
  • or the user has the role administrator or deployer
  • or the user has the capability manage_downloads or deploy. manage_downloads is a capability from Download Monitor.

Adding a new role deployer

  1. In WordPress, install the User Role Editor plug-in and create a new role named deployer

  2. Assign the permission deploy to the newly created role deployer:

    custom-deployer-role.png

  3. Assign the role deployer to the user:

    assign-deployer-role.png

Create an application password

Go to the user's profile and scroll down to Application Passwords. Choose a new Application Password Name and click on Add New Application Password

application-password.png

Note down the password (${WORDPRESS_DEPLOYER_APPLICATION_PASSWORD}).