Installations - Raruto/wordpress-git GitHub Wiki

Installing WP-CLI

Linux/Mac OS
  1. Make sure you have php (ie through MAMP) installed and in your PATH.
  2. Download wp-cli.phar: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  3. Make the file executable: chmod +x wp-cli.phar
  4. Add wp to your PATH: sudo mv wp-cli.phar /usr/local/bin/wp
Windows
  1. Make sure you have php (ie through MAMP) installed and in your PATH.
  2. Download wp-cli.phar and save it to a folder, eg c:\wp-cli
  3. Create a file named wp.bat in c:\wp-cli with the following contents:
    @ECHO OFF
    php "c:/wp-cli/wp-cli.phar" %*
    
  4. Add c:\wp-cli to your PATH (eg setx path "%path%;c:\wp-cli")

see also: wp-cli docs


Installing Composer

Linux/Mac OS
  1. Make sure you have php (ie through MAMP) installed and in your PATH.
  2. Download and run the installer: curl -sS https://getcomposer.org/installer | php
  3. Make the file executable: chmod +x composer.phar
  4. Add composer to your PATH: sudo mv composer.phar /usr/local/bin/composer
Windows
  1. Make sure you have php (ie through MAMP) installed and in your PATH.
  2. Download and run the installer: Composer-Setup.exe
  3. (Optional) "uninstall" the installer (anyway composer will remain..)
  4. This entry C:\ProgramData\ComposerSetup\bin was already added to your PATH.

see also: composer docs


Installing Git

Depending on operating system you may use the:

see also: git docs


Useful resources:

⚠️ **GitHub.com Fallback** ⚠️