the default instructions assume you have root and are intended to provide the most convenient use by placing the phar package in your path
alternative 1:
remove the sudo, change /usr/local/bin/wp
to /path/to/your/installation/wp
, and instead of calling the commands with wp command <parameters>
use ./wp command <parameters>
alternative 2:
remove the sude, change /usr/local/bin/wp
to /any/other/path/wp
and instead of calling commands with wp command <parameters>
use /any/other/path/wp command <parameters>
Related Posts:
- Changing the WP CLI cache folder
- Where Can I get wordpress hosting similar to wordpress.com? [closed]
- Fastest way (least amount of steps) to locally import a remote database using WP-CLI
- wp-cli Enabling Maintainance Mode
- WP-CLI – Selecting PHP version
- Can you have a blog in a subdirectory hosted on a different server?
- How can I bulk delete media and attachments using WP-CLI?
- WP-CLI Cannot Connect to Database due to Vagrant
- WP-CLI Process Killed
- How do I clone or duplicate a post with the WordPress Command Line Interface WP-CLI?
- How to use command ‘wp post create’ in wp-cli properly?
- WP-CLI :: Cannot installing plugin as www-data
- How to reset passwords for all users on a network using wp cli
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- wp media regenerate unknown –image_size parameter
- Export list of users with first and lastname in WP-CLI
- Remove all users from site except one using WP CLI
- How can I use WP-CLI commands without –allow-root
- wp-cli create post and media import
- Using WP CLI to set options in WP Multisite
- What is the difference between the Package Language and the Site Language?
- How do I update a nested option?
- Unable to access WP admin
- WordPress hosting – Shared/dedicated server? Any recommendations? [closed]
- WP-CLI with theme: Uncaught Error: Class ‘WP_CLI’ not found
- Safe to set permissions to 757 temporarily to update via wp-cli?
- How to create post in WP network using WP-CLI
- How to prevent WP-CLI shell from exiting when an exception occurs?
- Importing featured image to posts, duplicates the image
- wp-cli regenerate media is not working for custom sizes
- WP-CLI sudden empty response
- How to get all posts related to a term with WP-CLI?
- How to verify a correct wp-cli installation?
- How can I add an RSS widget using WP-CLI?
- Uninstall WP-CLI
- How to clear Transients on all sites in Multi Sites environment
- WP Cli will not execute on Windows
- Where do the files of a custom WP CLI Command reside?
- Different output from WP-CLI in bash vs PHP exec()
- WP-CLI command to update all plugins and core fails when executed from cron
- Jetpack Upgrade fails with WP CLI [closed]
- When WP_CLI runs WordPress from the command line, are hooks called?
- Getting page output HTML without request (for CriticalCSS, PurgeCSS)
- How can I search and replace by post type?
- Error establishing a database connection when running phpunit
- Set Site Icon programmatically (eg. using `wp cli`)
- WP-CLI cron on multisite using WP-Toolkit “succeded”, but callback not executed
- How to change user admin_color with WP CLI?
- How to rename default category name and slug using WP CLI?
- cURL to install theme
- wp-cli fails on installing to subdomain
- Error: reassigning content to a different user is not supported on multisite
- How do I add HTML code to a widget with wp-cli?
- Wildcard for wp-cli search-replace
- WP CLI can’t delete plugin related table
- Get media url (featured image) with wp-cli
- Can I use wp-cli to create posts with a custom post types?
- My blog hosted in distant server is still connecting to localhost
- WP CLI allowed fields?
- WP-CLI media import error
- Is it possible to view WP documentation within the WordPress shell?
- Userless db-only wordpress instalation
- WPCLI doesn’t recognize the site
- Website URL not getting updated
- wp-cli: Error establishing a database connection: undefined constant DB_USER
- Combine WPCLI commands for plugin installation and activation?
- Add passwords to config.yml to manage multiple sites
- Wp-CLI not working with WordPress installed with composer
- Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection
- How many WP websites can go on one shared hosting account?
- WP-CLi PHP Warning: mysqli_query(): (HY000/1356): View During Search Replace
- WP-Cli Error When Mapping Multisite Subdomain
- Is there any defects for using same database prefix in WordPress for multiple sites?
- WP CLI in WP 5.3 with PHP 7.4
- Bing/msn bots is heavily requesting random of my website
- WP changes siteurl, but some URLs then don’t work
- Install plugin on remote wordpress
- Unable to import complete data remote wp-cli wordpress
- Full search and replace isn’t enough to make all pictures to be loaded with https
- Make WordPress more like Jekyll (using wp-cli package?)
- Find latest/published version of post using wp-cli
- When installing wordpress through WP CLI mysite.com/admin not working
- Wp-cli from a plugin?
- Is it possible to update a single page using WP-CLI?
- undefined function apache_request_headers()
- Random HTTPs redirections at admin area in shared hosting
- How to fix old embeded iframes with WP-CLI search-replace
- ignoring, hidding mu plugins when wp-cli is run
- All plugins deactivated. What could cause this?
- Collaborate on wordpress local website, share files via dropbox?
- Is it possible to set the upload location to a different server?
- WordPress hosting good practice
- My website does not load since two days!
- Remote Export DB w. WP-cli.phar Over SSH
- Can WP-CLI modify database connection details in existing wp-config file?
- Weird WP -Cli Error Connection Refused
- wp cli media commands not working
- Transitioning a big blog to WEBP images
- is it possible to use wp cli to export custom post types
- Why doesn’t “wp db cli” enable tab completion?