# CLI

Motion's WP-CLI commands live under `wp sleek motion` and cover what makes
sense from a terminal: the settings, presets and breakpoints. Animations live
in your content as classes, so there is nothing else to script. Every
argument and option is in the [WP-CLI reference](/docs/motion/reference/cli.md).

## Settings

`wp sleek motion settings get` prints the settings, or one value by dot path,
and `wp sleek motion settings update` changes one value:

```bash
wp sleek motion settings get --format=json
wp sleek motion settings get editor.enable
wp sleek motion settings update editor.enable true
```

`true`, `false` and numbers are stored as booleans and numbers, everything
else as a string. Unlike the settings screen, `update` writes the value as
given, without checking it.

## Presets and breakpoints

The two lists have the same three commands:

```bash
wp sleek motion preset list --format=json
wp sleek motion preset add fade-up "from:opacity-0|y-20"
wp sleek motion preset remove fade-up

wp sleek motion breakpoint list
wp sleek motion breakpoint add lg "(min-width: 1024px)"
wp sleek motion breakpoint remove lg
```

`add` replaces an entry with the same name, and `remove` fails when there is
none.

## In the assistant

Motion's assistant can run these eight commands for you in the workspace,
with the same arguments; its `list` commands always answer in JSON.
