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]
- What is the “Endurance Cache” feature in my WordPress website?
- GoDaddy – WordPress Site Hosting Issues
- How to change user password with wp-cli?
- Detect if WP is running under WP-CLI
- Running WP Cron on multisite the right way
- WP CLI “Error establishing a database connection” in localhost (MAMP)
- how to update serialized options programatically?
- How I prevent a plugin to be loaded when doing WP-CLI?
- Fastest way (least amount of steps) to locally import a remote database using WP-CLI
- WP-CLI not recognizing commercial plugin updates
- Why is it important to deactivate a plugin before deleting it?
- wp-cli Enabling Maintainance Mode
- Is there a drush equivalent for WordPress yet?
- WP-CLI – Selecting PHP version
- How do I run a PHP script from WordPress environment, like `wp shell`?
- Using wp-cli can I not query pages by their title?
- Can you have a blog in a subdirectory hosted on a different server?
- wp-cli displays php notices when display errors off
- wp-cli 0.14.1 MySQL error
- How can I bulk delete media and attachments using WP-CLI?
- How to change user_login with wp-cli?
- How can I batch delete all unattached images with WP-CLI or other automated process?
- WP-CLI Cannot Connect to Database due to Vagrant
- WordPress test environment on windows
- WP-CLI Process Killed
- How to use wp-cli.yml file?
- wp-cli commands do nothing, return nothing
- WP cli –path does not seem to work
- Enable Auto-updates for all plugins using wp-cli? (since wordpress 5.5)
- How do I clone or duplicate a post with the WordPress Command Line Interface WP-CLI?
- Run WP-CLI using PHP
- How to update an ‘array’ option using wp-cli [duplicate]
- How to use command ‘wp post create’ in wp-cli properly?
- How do I activate an mu-plugin with WP-CLI?
- WP-CLI get all posts from certain post type and taxonomy term
- How to create a WP-CLI command with $_POST?
- wp-cli doesn’t find and wordpress installation
- Does wp post delete also delete metadata associated with posts?
- 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-CLI Bulk delete posts from specific category
- Disable comment windows for all existing posts (pages/blogposts)
- wp media regenerate unknown –image_size parameter
- Difference between deactivating, uninstalling, and deleting plugins
- wp-cli import theme sample data
- WP-CLI works on non WP-CLI installed WordPress instance?
- How can I run a WP-CLI command as authenticated user?
- Export list of users with first and lastname in WP-CLI
- On WP Multi sites how many sites…!
- WP-CLI – Return posts with matching meta key
- Is it possible just by using wp-cli to migrate one multisite instance to single site?
- Export WP database for import using WP-CLI on Vagrant Box
- Prompt user for input in WP CLI
- wp-cli is not working properly. No response from commands
- WP CLI info showing correct PHP binary but wrong version of PHP
- Generate WP-CLI @alias for each site on multisite
- Can’t install local plugin (zip) with wp-cli [closed]
- What could cause WP-CLI search-replace to not replace all instances of a string?
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- WP-CLI throwing PHP Fatal error: Call to undefined function apply_filters() [closed]
- WP-CLI How to generate a list of posts with corresponding meta values
- WPCLI – update plugins, themes, and core, all in one row, instead 3 rows?
- How do I setup a WordPress site on a server before the domain is ready?
- Using Travis CI to run unit tests and running phpunit locally [closed]
- Remove all users from site except one using WP CLI
- “Could not open input file” error even when WP-CLI is in the path
- Revert WordPress default options after a PHPUnit test has run
- Can I create multiple pages at once using WP-CLI?
- How do I set and list page_template with wpcli?
- Using wp-cli to Update WP Networks / Multisite from 3.5.1 to 3.8
- Moving wordpress out of the public directory
- WP-CLI update date and time format
- Change old URLs after the domain change
- Listing posts with wp-cli
- How can I use WP-CLI commands without –allow-root
- WP-CLI over SSH – wp command not found
- wp-cli create post and media import
- Need MySQL Query or WP-CLI command to updates old URLs in Shortcodes [closed]
- wp core install database connection error
- Import Media To CPT with CLI & Filter Custom Taxonomy
- Unable to write test cases for a WordPress plugin using PHPUnit and WP-CLI
- wp-cli with MAMP shows sh: mysql: command not found
- Using WP CLI to set options in WP Multisite
- How do I pass an array as an argument to a WP-CLI command?
- What is the difference between the Package Language and the Site Language?
- Shortest possible shell script to install WordPress on Nginx server?
- wp core update not working anymore
- PHP warning are displaying when using WP CLI [closed]
- Install and load additional plugins when running unit tests
- How can I list only sites that use a particular theme or plugin?
- WordPress speed slow after .5 million single image post via wp-cli
- WP CLI – show users whose ID is larger than given ID
- How can I replace all regex matches using the WP_CLI search-replace tool
- How do I update a nested option?
- What’s a better workflow for database migration?
- Unable to access WP admin
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”