WP-CLI commands
SleekMotion 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 motion breakpoint
Manages a named name/value list inside the settings option, used for both presets and breakpoints.
wp sleek motion breakpoint add
Adds an entry, replacing one with the same name.
wp sleek motion breakpoint add <name> <value>
| Argument | Description |
|---|---|
<name> |
The entry name. |
<value> |
The entry value. |
wp sleek motion breakpoint list
Lists the entries.
wp sleek motion breakpoint list [--format=<format>]
| Argument | Description |
|---|---|
[--format=<format>] |
Output format. Supports table and json. |
wp sleek motion breakpoint remove
Removes an entry by name.
wp sleek motion breakpoint remove <name>
| Argument | Description |
|---|---|
<name> |
The entry name. |
wp sleek motion preset
Manages a named name/value list inside the settings option, used for both presets and breakpoints.
wp sleek motion preset add
Adds an entry, replacing one with the same name.
wp sleek motion preset add <name> <value>
| Argument | Description |
|---|---|
<name> |
The entry name. |
<value> |
The entry value. |
wp sleek motion preset list
Lists the entries.
wp sleek motion preset list [--format=<format>]
| Argument | Description |
|---|---|
[--format=<format>] |
Output format. Supports table and json. |
wp sleek motion preset remove
Removes an entry by name.
wp sleek motion preset remove <name>
| Argument | Description |
|---|---|
<name> |
The entry name. |
wp sleek motion settings
Reads and writes the SleekMotion settings.
wp sleek motion settings get
Shows the settings, or one value by dot path.
wp sleek motion settings get [<path>] [--format=<format>]
| Argument | Description |
|---|---|
[<path>] |
A dot path like editor.enable. Omit for everything. |
[--format=<format>] |
json prints every value as JSON; plain prints a single value as is. Without it, structures print as JSON and single values as PHP literals. One of json, plain. |
Examples
wp sleek motion settings get editor.enable
wp sleek motion settings get --format=json
wp sleek motion settings update
Updates one settings value by dot path.
true/false and numbers are cast; everything else is stored as a string.
wp sleek motion settings update <path> <value>
| Argument | Description |
|---|---|
<path> |
A dot path like editor.enable. |
<value> |
The new value. |
Examples
wp sleek motion settings update editor.enable true