Project Type: WordPress Reference

wp role create

Creates a new role. Synopsis wp role create <role-key> <role-name> [--clone=<role>] Options The internal name of the role. The publicly visible name of the role. [--clone=] Clone capabilities from an...

wp role delete

Deletes an existing role. Synopsis wp role delete <role-key> Options The internal name of the role. Examples # Delete approver role $ wp role delete approver Success: Role with key...

wp role exists

Checks if a role exists. Exits with return code 0 if the role exists, 1 if it does not. Synopsis wp role exists <role-key> Options The internal name of the...

wp post

Manages posts, content, and meta. Subcommands Command Description wp post create Creates a new post. wp post delete Deletes an existing post. wp post edit Launches system editor to edit...

wp rewrite flush

Flushes rewrite rules. Resets WordPress' rewrite rules based on registered post types, etc. To regenerate a .htaccess file with WP-CLI, you'll need to add the mod_rewrite module to your wp-cli.yml...

wp plugin

Manages plugins, including installs, activations, and updates. See the WordPress Plugin Handbook developer resource for more information on plugins. Subcommands Command Description wp plugin activate Activates one or more plugins....

wp post-type get

Gets details about a registered post type. Synopsis wp post-type get <post-type> [--field=<field>] [--fields=<fields>] [--format=<format>] Options Post type slug. [--field=] Instead of returning the whole taxonomy, returns the value of...

wp post-type list

Lists registered post types. Synopsis wp post-type list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] Options [--=] Filter by one or more fields (see get_post_types() first parameter for a list of available fields)....

wp post-type

Retrieves details on the site's registered post types. Get information on WordPress' built-in and the site's custom post types. Subcommands Command Description wp post-type get Gets details about a registered...

wp maintenance-mode

Activates, deactivates or checks the status of the maintenance mode of a site. Subcommands Command Description wp maintenance-mode activate Activates maintenance mode. wp maintenance-mode deactivate Deactivates maintenance mode. wp maintenance-mode...

← Back to Chubes.net