There are three ways to install deployer:
- download phar archive
- source composer installation
- distribution composer installation
To install Deployer as phar archive, run the following commands:
curl -LO https://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/depIf you need another version of Deployer, you can find it on the download page. Later, to upgrade Deployer, run the command:
dep self-updateTo upgrade to the next major release, if available, use the --upgrade (-u) option:
dep self-update --upgradeTo install Deployer source version with Composer, run the command:
composer require deployer/deployer --devYou can also install it globally:
composer global require deployer/deployerMore info: https://getcomposer.org/doc/03-cli.md#global
Then to use Deployer, run the following command:
php vendor/bin/depIf you have installed Deployer using both methods, running
depcommand will prefer a composer-installed version.
If you have dependency conflicts you can use "distribution composer installation"
To install Deployer distribution version with Composer, run the command:
composer require deployer/dist --devThen to use Deployer, run the following command:
php vendor/bin/depIf you want to build Deployer from the source code, clone the project from GitHub:
git clone https://github.com/deployphp/deployer.gitThen run the following command in the project directory:
php bin/buildThis will build the deployer.phar phar archive.
Deployer comes with an autocomplete script for bash/zsh/fish, so you don't need to remember all tasks and options. To install, run the following command:
dep autocompleteAnd follow the instructions.
Read getting started next.