# Installer wp-cli sur un hébergement Pro Ovh

**URL:** https://community.ovhcloud.com/t/installer-wp-cli-sur-un-hebergement-pro-ovh/22617
**Category:** Oldies but goldies
**Created:** [Février 25, 2021, 2:56 UTC](https://community.ovhcloud.com/t/installer-wp-cli-sur-un-hebergement-pro-ovh/22617 "2021-02-25T14:56:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FrancoisD3](https://community.ovhcloud.com/letter_avatar/francoisd3/32/5_5575768a8748004e209b776fc1b2916d.png) [@FrancoisD3](https://community.ovhcloud.com/u/FrancoisD3)
#### Post date: [Février 25, 2021, 2:56 UTC](https://community.ovhcloud.com/t/installer-wp-cli-sur-un-hebergement-pro-ovh/22617/1 "2021-02-25T14:56:17Z")

</div>

Bonjour,  
J'ai cherché, mais à part un article d'une personne souhaitant installer wp-cli en local (si j'ai bien compris), je n'ai pas trouvé de ressources concernant l'activation de wp-cli sur ovh.   
Est-ce que quelqu'un pourrait m'aiguiller afin que je puisse faire ça proprement?  
D'avance merci

---

<div class="post-metadata">

### Author: ![ArnaudF1](https://community.ovhcloud.com/letter_avatar/arnaudf1/32/5_5575768a8748004e209b776fc1b2916d.png) [@ArnaudF1](https://community.ovhcloud.com/u/ArnaudF1)
#### Post date: [Février 25, 2021, 6:49 UTC](https://community.ovhcloud.com/t/installer-wp-cli-sur-un-hebergement-pro-ovh/22617/2 "2021-02-25T18:49:41Z")

</div>

Bonjour,  
  
une procédure pour installer wp-cli via l'accès SSH :   
  
[username@ssh.clusterxxx.hosting.ovh.net](mailto:username@ssh.clusterxxx.hosting.ovh.net) (php/x.x/production/image) ~ $ mkdir -p $HOME/bin  
[username@ssh.clusterxxx.hosting.ovh.net](mailto:username@ssh.clusterxxx.hosting.ovh.net) (php/x.x/production/image) ~ $ curl -o $HOME/bin/wp-cli [https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar](https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar)  
 % Total % Received % Xferd Average Speed Time Time Time Current  
 Dload Upload Total Spent Left Speed  
 100 5437k 100 5437k 0 0 15.5M 0 --:–:-- --:–:-- --:–:-- 15.5M  
  
[username@ssh.clusterxxx.hosting.ovh.net](mailto:username@ssh.clusterxxx.hosting.ovh.net) (php/x.x/production/image) ~ $ chmod +x $HOME/bin/wp-cli  
[username@ssh.clusterxxx.hosting.ovh.net](mailto:username@ssh.clusterxxx.hosting.ovh.net) (php/x.x/production/image) ~ $ which wp-cli  
 /homez.xxx/username/bin/wp-cli  
[username@ssh.clusterxxx.hosting.ovh.net](mailto:username@ssh.clusterxxx.hosting.ovh.net) (php/x.x/production/image) ~ $ wp-cli --version  
 WP-CLI 2.4.0  
  
  
  
A noter, si vous n'avez pas de retour lors de la commande `which wp-cli` vous pouvez exécuter cette commande en plus   
  
`username@ssh.clusterxxx.hosting.ovh.net (php/x.x/production/image) ~ $ export PATH=$HOME/bin:$PATH`  
  
et reprendre à l'étape `which wp-cli`
