Title: wp ability
Published: January 7, 2026
Last modified: November 12, 2026

---

# 󠀁[wp ability <command>](https://developer.wordpress.org/cli/commands/ability/)󠁿

Lists, inspects, and executes abilities registered via the WordPress Abilities API.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/ability/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/ability/?output_format=md#subcommands)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/ability-command)

 [ View Open Issues (1) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Aability+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (8) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Aability+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/ability-command/issues/new)

>  **Note:** This command is not part of a stable WP-CLI release yet. To use it 
> now, [switch to the nightly build](https://make.wordpress.org/cli/handbook/guides/installing/#updating-wp-cli)
> with `wp cli update --nightly`. If you installed the command as a separate package,
> updating that package may be enough.

 The Abilities API, introduced in WordPress 6.9, provides a standardized way to 
register and discover distinct units of functionality within a WordPress site.

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/ability/?output_format=md#examples)󠁿

    ```
    # List all registered abilities.
    $ wp ability list
    +---------------------------+----------------------+----------+------------------------------------------+
    | name                      | label                | category | description                              |
    +---------------------------+----------------------+----------+------------------------------------------+
    | core/get-site-info        | Get Site Information | site     | Returns site information configured i... |
    | core/get-user-info        | Get User Information | user     | Returns basic profile details for the... |
    | core/get-environment-info | Get Environment Info | site     | Returns core details about the site's... |
    +---------------------------+----------------------+----------+------------------------------------------+

    # Get details of a specific ability.
    $ wp ability get core/get-site-info --fields=name,label,category,readonly,public,show_in_rest
    +---------------+----------------------+
    | Field         | Value                |
    +---------------+----------------------+
    | name          | core/get-site-info   |
    | label         | Get Site Information |
    | category      | site                 |
    | readonly      | 1                    |
    | public        | 1                    |
    | show_in_rest  | 1                    |
    +---------------+----------------------+

    # Execute an ability with JSON input (required for array values).
    $ wp ability run core/get-site-info --input='{"fields":["name","version"]}' --user=admin
    {
        "name": "Test Blog",
        "version": "6.9"
    }

    # Check if an ability exists.
    $ wp ability exists core/get-site-info
    $ echo $?
    0

    # Check if user can run an ability.
    $ wp ability can-run core/get-site-info
    $ echo $?
    0

    # Validate input before execution.
    $ wp ability validate core/get-site-info --input='{"fields":["name","version"]}'
    Success: Input is valid.
    ```

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/ability/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp ability can-run](https://developer.wordpress.org/cli/commands/ability/can-run/) |

Checks if the current user can execute an ability.

  | 
| [wp ability category](https://developer.wordpress.org/cli/commands/ability/category/) |

Lists and inspects ability categories registered via the WordPress Abilities API.

  | 
| [wp ability exists](https://developer.wordpress.org/cli/commands/ability/exists/) |

Checks whether an ability is registered.

  | 
| [wp ability get](https://developer.wordpress.org/cli/commands/ability/get/) |

Gets details about a registered ability.

  | 
| [wp ability list](https://developer.wordpress.org/cli/commands/ability/list/) |

Lists all registered abilities.

  | 
| [wp ability run](https://developer.wordpress.org/cli/commands/ability/run/) |

Executes a registered ability.

  | 
| [wp ability validate](https://developer.wordpress.org/cli/commands/ability/validate/) |

Validates input against an ability’s schema.

  |

 _Command documentation is regenerated at every release. To add or update an example,
please submit a pull request against the corresponding part of the codebase._