drush 2for drush 9x


Grant specified permission(s) to a role.

drush 2

  • Aliases


    2 has 2 alias/es:


    drush rap

    drush role-add-perm

  • Arguments


    2 accepts 2 argument/s:


    machine_name* : The role to modify.

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

  • Options


    2 accepts 4 option/s:


    --cache-clear

    --cache-clear : cache-clear

    --notify

    --notify : notify

    --druplicon

    --druplicon : druplicon

    --xh-link

    --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