# CLI

Views and admin pages are built in the editor, so SleekView's WP-CLI surface
stays small: it inspects, backs up and removes them, and reads and writes
the settings. The [WP-CLI reference](/docs/view/reference/cli.md) lists every
command with its arguments; `wp help sleek view` prints the same on a site.

## Views and admin pages

`wp sleek view list` and `wp sleek view admin-page list` print each record's
ID, title and status, and for a View its post type; add `--format=json` for
JSON. `wp sleek view get` and `wp sleek view admin-page get` print one
record's full configuration as JSON, which is useful for a backup or to
compare two versions:

```bash
wp sleek view list --format=json
wp sleek view get 72 > view-72.json
```

`wp sleek view delete` and `wp sleek view admin-page delete` delete a record
permanently after asking you to confirm; `--yes` skips the question.

## Settings

`wp sleek view settings get` prints SleekView's settings document, the
`sleek-view_settings` option, as JSON, and `wp sleek view settings set`
changes one key in it, reading `true`, `false` and numbers as such.

## From the assistant

The workspace [assistant](/docs/view/ai/chat.md) can run these commands for you.
It asks for your approval before a delete runs.
