Skip to content

role:create

Create a new role.

Examples

  • drush role:create 'test role'. Create a new role 'test role'. On D8, the human-readable name will be 'Test role'.
  • drush role:create 'test role' 'Test role'. Create a new role with a machine name of 'test role', and a human-readable name of 'Test role'.

Arguments

  • machine_name. The symbolic machine name for the role.
  • [human_readable_name]. A descriptive name for the role.

Aliases

  • rcrt
  • role-create

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.