All apps/WP-CLI

WP-CLI

wp

The command line for WordPress. No browser required.

Runs as wp|macOS, Linux, Windows|wp-cli.org

Command form

ai-draft · 7 tasks · 22 fields

Manage plugins and run database search-replace for a WordPress site. Run from the site directory or set the WordPress path. Other command groups are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui wp

wp plugin list

List plugins

Show installed plugins.

List pluginsExample values, fixed in this page — nothing here reaches a terminal
Basic
Status
string
Output format
string
TasksEach one presets the form for one job
List plugins
statusformat
Active plugins
statusformat
ParametersOnly these flags are editable in the form
Status
string
--statusactiveinactivemust-usedropinactive-network
Output format
string
--formattablecsvjsoncountyaml
Single field
string
--field
Fields
Comma-separated list of fields.
string
--fields

wp plugin install

Install plugins

Install from wordpress.org, a zip or a URL.

Install pluginsExample values, fixed in this page — nothing here reaches a terminal
Basic
Plugin slug, zip or URL*
string
Activate after install
--activate
TasksEach one presets the form for one job
Install and activate
pluginactivate
ParametersOnly these flags are editable in the form
Plugin slug, zip or URL
string · positional 0 · repeatable
Version
string
--version
Overwrite installed version
boolean
--force
Activate after install
boolean
--activate

wp plugin activate

Activate plugins

Activate one or all plugins.

Activate pluginsExample values, fixed in this page — nothing here reaches a terminal
Basic
Plugins*
string
TasksEach one presets the form for one job
Activate plugin
plugin
Activate all
all
ParametersOnly these flags are editable in the form
Plugins
string · positional 0 · repeatable
All plugins
boolean
--all
Network-wide
boolean
--network

wp search-replace

Search and replace

Replace strings in the database. Preview with a dry run first.

Search and replaceExample values, fixed in this page — nothing here reaches a terminal
Basic
Search for*
string
Replace with*
string
Tables
string
Dry run
--dry-run
TasksEach one presets the form for one job
Preview replacement
oldnewtabledry_run
Run replacement
oldnewtable
ParametersOnly these flags are editable in the form
Search for
string · positional 0
Replace with
string · positional 1
Tables
Restrict to these tables; wildcards allowed.
string · positional 2 · repeatable
Dry run
boolean
--dry-run
All tables
boolean
--all-tables
Skip tables
Comma-separated list.
string
--skip-tables
Skip columns
Comma-separated list.
string
--skip-columns
Treat as regex
boolean
--regex
Use PHP for thorough replacement
boolean
--precise
Export to SQL file instead
path
--export
WordPress path
path
--path
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed wp against its version. A form that does not match your version is not offered.