There was a problem loading the comments.

Do you offer wp-cli

Support Portal  »  cPanel  »  Viewing Article

  Print

Yes, wp-cli gets installed on all our servers, you'll be able to use it as the command wp when you're logged into SSH.

Some useful commands from wp-cli:

Create an admin user:

wp user create myuser me@email.com --role=administrator

Verify WordPress core or plugins:

wp core verify-checksums

wp plugin verify-checksums --all

Install and activate a new plugin:

wp plugin install litespeed-cache --activate

Reinstall an existing plugin:

wp plugin install litespeed-cache --force

Update all plugins:

wp plugin update --all

Change http to https:

wp search-replace 'http://mydomain.com' 'https://mydomain.com' --skip-columns=guid --precise

You might want to use --all-tables when using search-replace to look at all tables in the database and not just the ones registered by the $wpdb variable.

Most of the commands have a --dry-run flag that you can use to test what would be changed.


Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

CAPTCHA
© PerfGrid