drush role-createfor drush 6x

Create a new role.

drush role-create

  • Aliases

    role-create has 1 alias/es:

    drush rcrt

  • Arguments

    role-create accepts 2 argument/s:

    machine name : The symbolic machine name for the role. Required.

    human-readable name : A descriptive name for the role. Optional; Drupal 8 only.  Ignored in D6 and D7.

  • Examples

    Create a new role 'test role' on D6 or D7; auto-assign the rid. On D8, 'test role' is the rid, and the human-readable name is set to 'Test role'.

    drush role-create 'test role'

    Create a new role with a machine name of 'test role', and a human-readable name of 'Test role'. On D6 and D7, behaves as the previous example.

    drush role-create 'test role' 'Test role'

  • Comments

    comments powered by Disqus