Title: WP-CLI WP setup error
Last modified: July 30, 2018

---

# WP-CLI WP setup error

 *  [fcvolunteer](https://wordpress.org/support/users/fcvolunteer/)
 * (@fcvolunteer)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-cli-wp-setup-error-2/)
 * 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
       wp-cli.phar
       someuser@server:~/wp$ wp --info
       -bash: wp: command not found
       ```
   
 *  Any guidance would be hugely appreciated!
    -  This topic was modified 7 years, 10 months ago by [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/).
      Reason: fixed backticks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-cli-wp-setup-error-2/#post-10538648)
 * 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?
 *  [wojsmol](https://wordpress.org/support/users/wojsmol/)
 * (@wojsmol)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/wp-cli-wp-setup-error-2/#post-10541217)
 * Hi [@fcvolunteer](https://wordpress.org/support/users/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
           PATH="$HOME/bin:$PATH"
       fi
       ```
   
 * 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.

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [wojsmol](https://wordpress.org/support/users/wojsmol/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/wp-cli-wp-setup-error-2/#post-10541217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
