WP-CLI is the command-line tool for WordPress. It lets you update plugins, reset a user, change your site's address or flush caches in seconds, without opening the dashboard. On Domain India cPanel and DirectAdmin hosting the wp command is already in your jailed shell; you only need SSH switched on for your account.
The wp command is present in the jailed shell on our cPanel and DirectAdmin servers (checked 23 September 2026). To use it, ask support to enable jailed SSH for your account, log in with an SSH key on port 22, cd into your WordPress folder and run wp --info. Commands that only talk to WordPress, such as plugin updates, user changes and search-replace, are the ones to use; database dump and import commands can fail on our cPanel servers, so use phpMyAdmin for those.
1. What you need first
| Requirement | On Domain India shared hosting |
|---|---|
| SSH access | Jailed SSH is available on every shared hosting plan (cPanel, DirectAdmin, Webuzo). It is off by default; ask support to enable it for your account |
| Login method | An SSH key; password login over SSH is switched off |
| Port | 22 |
The wp command | Present in the jailed shell on cPanel and DirectAdmin; on Webuzo, ask support |
| Windows (Plesk) hosting | No SSH, so no WP-CLI |
To get SSH switched on, contact support on live chat or open a ticket at /client/support/new. Setting up your key and connecting are covered step by step in enabling and accessing jailed SSH.
2. Connect and check WP-CLI works
Connect with your control panel username and your key (your details are on the Access tab of your hosting service in the client area):
ssh -i ~/.ssh/id_ed25519 -p 22 [email protected]On cPanel you can also use Terminal inside cPanel once shell access is enabled for your account. Then go to the folder that holds wp-config.php and check WP-CLI:
cd ~/public_html
wp --info
wp core versionIf your WordPress site is in a subfolder or an addon domain's folder, cd there instead, or add --path=/home/yourusername/folder to any command.
3. Everyday commands
Updates
wp core check-update
wp core update
wp core update-db
wp plugin update --all
wp theme update --allTake a backup before a big update; see section 6.
Plugins and themes
wp plugin list
wp plugin activate akismet
wp plugin deactivate akismet
wp plugin delete old-plugin
wp theme list
wp theme activate twentytwentyfiveUsers
wp user list
wp user create jane [email protected] --role=editor
wp user update 1 --prompt=user_pass--prompt=user_pass asks for the new password instead of typing it on the command line, where it would be saved in your shell history.
Caches and rewrite rules
wp cache flush
wp transient delete --all
wp rewrite flush4. Fixing common problems
White screen or a crash after a plugin update. Turn all plugins off, check the site loads, then turn them back on one at a time:
wp plugin deactivate --all
wp plugin activate plugin-nameLocked out of wp-admin. Reset your own user's password with wp user update yourlogin --prompt=user_pass, rather than creating extra admin accounts you may forget to delete.
Moving to a new domain or to https. wp search-replace changes the old address everywhere in the database and handles WordPress's serialized data safely. Always do a dry run first:
wp search-replace 'https://old-domain.in' 'https://new-domain.in' --skip-columns=guid --dry-run
wp search-replace 'https://old-domain.in' 'https://new-domain.in' --skip-columns=guidThe full method, including redirects, is in moving a WordPress site from one URL to another.
5. What works differently on shared hosting
On our cPanel servers, PHP functions that start other programs are disabled, on the command line as well as the web. Commands such as wp db export, wp db import, wp db optimize and wp db cli rely on the MySQL client programs, so they can fail. Export and import databases in phpMyAdmin instead, whichever panel you use; see PHP disabled functions on shared hosting.
- Your resource limits apply. Everything you run over SSH counts towards your account's CPU, memory and process limits, so run big jobs (for example
search-replaceon a large shop) at a quiet time. - No root. You cannot install system packages or change server settings. WP-CLI works on your own WordPress sites only.
- Server cache. Our cPanel servers have a caching proxy in front of Apache. After a change, test with a query string such as
?t=123added to the URL. - Prefer the dashboard? On cPanel, WP Toolkit and Softaculous handle updates and installs without a command line.
6. Back up before you change anything
WP-CLI changes your live site immediately, and there is no undo. Before updates or a search-replace, download a backup from JetBackup 5 or export the database in phpMyAdmin; see how can I download a backup of my site.
7. Where Domain India fits
Jailed SSH with WP-CLI suits site owners and developers who manage several WordPress sites. Prices on the cards are live and exclude 18% GST.
- 25 GB NVMe SSD Storage
- 50 GB Monthly Bandwidth
- 1 Website
- 10 Email Accounts
- 50 GB NVMe SSD Storage
- 100 GB Monthly Bandwidth
- 5 Websites
- 50 Email Accounts
Frequently asked questions
Is WP-CLI available on Domain India shared hosting?
Yes, on cPanel and DirectAdmin: the wp command is present in the jailed shell. You need jailed SSH, which is available on every shared hosting plan but off by default, so ask support to enable it. On Webuzo, ask support.
How do I log in to use WP-CLI?
Once support has enabled jailed SSH, log in with an SSH key on port 22 using your control panel username. Password login over SSH is switched off. On cPanel you can also use the Terminal inside cPanel once shell access is enabled.
Why does wp db export fail on my hosting?
On Domain India cPanel servers, PHP functions that start other programs are disabled, including on the command line. wp db export and wp db import need the MySQL client programs, so they can fail. Use phpMyAdmin to export and import databases.
Can I reset a WordPress password with WP-CLI?
Yes. From your WordPress folder, run wp user update followed by your username and --prompt=user_pass, and type the new password when asked. This keeps the password out of your shell history.
Is wp search-replace safe for changing my domain?
Yes, it handles serialized data that a plain SQL replace would break. Run it with --dry-run first to see what would change, skip the guid column, and take a database backup before the real run.
Ready to use WP-CLI? Ask support to enable jailed SSH, set up your key with the SSH guide, and keep the WordPress guide at hand.
Open a ticket with your domain and say you want jailed SSH for WP-CLI. Support switches it on and confirms when it is ready.
Ask support to enable it