wp role create

Creates a new role.

Synopsis

bash
wp role create <role-key> <role-name> [--clone=<role>]

Options

The internal name of the role.

The publicly visible name of the role.

[–clone=] Clone capabilities from an existing role.

Examples

bash
# Create role for Approver
$ wp role create approver Approver
Success: Role with key 'approver' created.

# Create role for Product Administrator
$ wp role create productadmin "Product Administrator"
Success: Role with key 'productadmin' created.