| Command | Description |
|---|---|
| wp admin | Open /wp-admin/ in a browser. |
| wp cache | Manipulate the WP Object Cache object. |
| wp cap | Adds, removes, and lists capabilities of a user role. |
| wp checksum | Verifies file integrity by comparing to published checksums. |
| wp cli | Review current WP-CLI info, check for updates, or see defined aliases. |
| wp comment | Creates, updates, deletes, and moderates comments. |
| wp config | Manage the wp-config.php file |
| wp core | Download, install, update and manage a WordPress install. |
| wp cron | Manage WP-Cron events and schedules. |
| wp db | Perform basic database operations using credentials stored in wp-config.php |
| wp dist-archive | Create a distribution archive based on a project’s .distignore file. |
| wp eval | Execute arbitrary PHP code. |
| wp eval-file | Load and execute a PHP file. |
| wp export | Export WordPress content to a WXR file. |
| wp find | Find WordPress installs on the filesystem. |
| wp help | Get help on WP-CLI, or on a specific command. |
| wp import | Import content from a WXR file. |
| wp language | |
| wp media | Imports files as attachments, regenerates thumbnails, lists registered image sizes. |
| wp menu | Lists, creates, assigns, and deletes the active theme’s navigation menus. |
| wp network | |
| wp option | Retrieves and sets site options, including plugin and WordPress settings. |
| wp package | Runs WP-CLI package manager commands. |
| wp plugin | Manages site plugins, including installs, activations, and updates. |
| wp post | Manages posts, content, and meta. |
| wp post-type | Retrieves details on the site’s registered post types. |
| wp profile | |
| wp rewrite | Lists or flushes the site’s rewrite rules, updates the permalink structure. |
| wp role | Manages user roles, including creating new roles and resetting to defaults. |
| wp scaffold | Generate code for post types, taxonomies, plugins, child themes, etc. |
| wp search-replace | Search/replace strings in the database. |
| wp server | Launch PHP’s built-in web server for this specific WordPress installation. |
| wp shell | Opens an interactive PHP console for running and testing PHP code. |
| wp sidebar | Lists registered sidebars. |
| wp site | Performs site-wide operations on a multisite install. |
| wp super-admin | Lists, adds, or removes super admin users on a multisite install. |
| wp taxonomy | Retrieves information about registered taxonomies. |
| wp term | Manages taxonomy terms and term meta, with create, delete, and list commands. |
| wp theme | Manages site themes, including installs, activations, and updates. |
| wp transient | Manipulate the WordPress Transient Cache. |
| wp user | Manages users, along with their roles, capabilities, and meta. |
| wp widget | Manages widgets, including adding and moving them within sidebars. |