Skip to content

WP-CLI commands

SleekView registers these WP-CLI commands. Each is documented by the WP-CLI docblock where it is declared; wp help <command> prints the same text on a site.

wp sleek view

Inspects views and admin pages and runs maintenance.

wp sleek view admin-page

Inspects admin pages.

wp sleek view admin-page delete

Deletes an admin page.

Shell
wp sleek view admin-page delete <id> [--yes]
Argument Description
<id> The admin page id.
[--yes] Skip the confirmation prompt.

wp sleek view admin-page get

Shows one admin page’s configuration.

Shell
wp sleek view admin-page get <id>
Argument Description
<id> The admin page id.

wp sleek view admin-page list

Lists every admin page.

Shell
wp sleek view admin-page list [--format=<format>]
Argument Description
[--format=<format>] Output format. Supports table and json.

wp sleek view delete

Deletes a view.

Shell
wp sleek view delete <id> [--yes]
Argument Description
<id> The view id.
[--yes] Skip the confirmation prompt.

wp sleek view get

Shows one view’s configuration.

Shell
wp sleek view get <id>
Argument Description
<id> The view id.

wp sleek view list

Lists every view.

Shell
wp sleek view list [--format=<format>]
Argument Description
[--format=<format>] Output format. Supports table and json.

wp sleek view settings

Reads and writes the plugin settings.

wp sleek view settings get

Shows the settings as json.

Shell
wp sleek view settings get

wp sleek view settings set

Updates one settings key.

Shell
wp sleek view settings set <key> <value>
Argument Description
<key> The settings key.
<value> The new value. true/false and numbers are cast.

Stay in the Loop!  

Be the first to hear about new updates, special offers, and helpful tips, delivered straight to your inbox.

We respect your inbox (and your privacy). Read our privacy policy.