---
layout: default
title: 'wp cap add'
display_global_parameters: true
---

<small>[Commands](/commands/) &raquo; [cap](/commands/cap/) &raquo; add</small>

`wp cap add` - Add capabilities to a given role.

<small>Quick links: <a href="https://github.com/wp-cli/wp-cli/issues?q=is%3Aopen+label%3Acommand%3Acap-add+sort%3Aupdated-desc">Github issues</a></small>

<hr />

### OPTIONS

&lt;role&gt;
: Key for the role.

&lt;cap&gt;...
: One or more capabilities to add.

### EXAMPLES

    # Add 'spectate' capability to 'author' role.
    $ wp cap add author spectate
    Success: Added 1 capability to 'author' role.



