Skip to content

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.

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

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

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

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

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

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

Shell
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

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

Shell
wp sleek motion settings update <path> <value>
Argument Description
<path> A dot path like editor.enable.
<value> The new value.

Examples

Shell
wp sleek motion settings update editor.enable true

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.