Title: wp sidebar
Published: February 5, 2018
Last modified: May 17, 2026

---

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

Lists registered sidebars.

## In this article

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

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

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

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

A [sidebar](https://developer.wordpress.org/themes/functionality/sidebars/) is any
widgetized area of your theme.

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

    ```
    # List sidebars
    $ wp sidebar list --fields=name,id --format=csv
    name,id
    "Widget Area",sidebar-1
    "Inactive Widgets",wp_inactive_widgets
    ```

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

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

Lists registered sidebars.

  |

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