Hi there,

I want to get using WP CLI. The install instructions get me untill getting the wp-cli.phar to my directory from git repo.

The obvious step i am unable to compelete is adding wp cli to the path so i can use wp as a command.

Please advise. Also let me know any good practice for doing so. e.g. where to install it etc.

WP-CLI is installed automatically in ~/bin when you install a WP app. That location is automatically on your PATH so you should be able to run it.

@sean in my case, none of the WP apps were installed. All of them were migrated with the import script.
I dont see any ~/bin folder. So how do i get running with wp-cli without root on migrated apps.

  • sean replied to this.

    snaushads

    mkdir ~/bin
    wget -O ~/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    chmod u+x ~/bin/wp
      Mastodon