drush role:perm:addfor drush 9x

Grant specified permission(s) to a role.

drush role:perm:add

  • Aliases

    role:perm:add has 2 alias/es:

    drush rap

    drush role-add-perm

  • Arguments

    role:perm:add accepts 2 argument/s:

    machine_name* : The role to modify.

    permissions* : The list of permission to grant, delimited by commas.

  • Options

    role:perm:add accepts 4 option/s:


    --cache-clear : cache-clear


    --notify : notify


    --druplicon : druplicon


    --xh-link : xh-link

  • Examples

    Allow anon users to post comments.

    drush role-add-perm anonymous 'post comments'

    Allow anon users to post comments and access content.

    drush role:add-perm anonymous "'post comments','access content'"

    Discover the permissions associated with given module (then use this command as needed).

    drush pm:info --fields=permissions --format=csv aggregator

  • Comments

    comments powered by Disqus