Support » Developing with WordPress » WP-CLI WP setup error

  • I’m totally new to this whole WP-CLI thing but I downloaded Putty, and managed to install Wp-Cli with the wget command. I couldn’t get the ‘sudo mv wp-cli.phar /usr/local/bin/wp’ to work right so that I could use ‘wp’ commands. I’m sure I’m doing something really dumb, but I’m totally at a loss. I ended up creating a wp folder via my ftp and moving the wp-cli.phar file into it but I’m sure that didn’t help my cause cuz’ it’s still not letting me use wp before the commands. Here’s the error I’m getting:

    someuse@server:~/wp$ ls
    someuser@server:~/wp$ wp --info
    -bash: wp: command not found

    Any guidance would be hugely appreciated!

    • This topic was modified 8 months, 3 weeks ago by  Jose Castaneda. Reason: fixed backticks
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda



    Hey there,

    My first question is how experienced are you with the command line and the second is if the file is executable? From just that output you gave it looks like you are in the /usr/local/bin/wp/ directory, correct?

    Hi @fcvolunteer
    If I understand your post correctly then you are using shared hosting withy ssh enabled. If so then please check your main account folder if .profile or .bash_profile files exits. If you find eider of this files then please check if then contain something like this:

    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then

    and reply with your findings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-CLI WP setup error’ is closed to new replies.