Title: wp taxonomy
Published: February 5, 2018
Last modified: April 13, 2026

---

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

Retrieves information about registered taxonomies.

## In this article

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

[ Back to top](https://developer.wordpress.org/cli/commands/taxonomy/?output_format=md#wp--skip-link--target)

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

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

See references for [built-in taxonomies](https://developer.wordpress.org/themes/basics/categories-tags-custom-taxonomies/)
and [custom taxonomies](https://developer.wordpress.org/plugins/taxonomies/working-with-custom-taxonomies/).

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

    ```
    # List all taxonomies with 'post' object type.
    $ wp taxonomy list --object_type=post --fields=name,public
    +-------------+--------+
    | name        | public |
    +-------------+--------+
    | category    | 1      |
    | post_tag    | 1      |
    | post_format | 1      |
    +-------------+--------+

    # Get capabilities of 'post_tag' taxonomy.
    $ wp taxonomy get post_tag --field=cap
    {"manage_terms":"manage_categories","edit_terms":"manage_categories","delete_terms":"manage_categories","assign_terms":"edit_posts"}
    ```

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

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

Gets details about a registered taxonomy.

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

Lists registered taxonomies.

  |

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