Troubleshoot WP-CLI on WordPress.com
A WP-CLI command on WordPress.com that returns HTML or a forbidden error is usually caused by a plugin, a theme, or a command that WordPress.com disables.
HTML output from WP-CLI commands
A WP-CLI command that returns HTML instead of its normal output usually means a maintenance plugin is active, or a plugin or theme has a coding error. If a maintenance plugin is active, turn it off and run the command again.
To check whether a plugin or theme is the cause, run the command again with the --skip-plugins or --skip-themes flag:
wp --skip-plugins plugin listIf the command returns normal output with --skip-plugins, a plugin is the cause. If it returns normal output with --skip-themes, your theme is the cause. To narrow it down to one plugin, see Skipping plugins and themes. Once you find the cause, deactivate the plugin or switch to a different theme, and contact its developer about the error.
Forbidden command errors
A WP-CLI command returns a forbidden error when WordPress.com disables that command on your plan. To see which commands are available on your plan, run the following command:
wp --helpFor the commands WordPress.com adds, and why some core commands are disabled, see Platform-specific commands.
WP-CLI support
If you can’t access WP-CLI on your site, contact support. For help using individual commands, see Common commands.
Last updated: November 20, 2026