Deployer can be installed in two ways: using phar archive and using composer.
To install Deployer via phar archive, run next commands:
curl -LO https://deployer.org/deployer.phar mv deployer.phar /usr/local/bin/dep chmod +x /usr/local/bin/dep
If you need another version of Deployer, you can find them on download page. Later, to upgrade Deployer run the command:
To upgrade to the next major release, if available, use the
--upgrade (-u) option:
dep self-update --upgrade
To install Deployer with Composer, run next command:
composer require deployer/deployer --dev
You can also install it globally:
composer global require deployer/deployer
More info: https://getcomposer.org/doc/03-cli.md#global
Then to use Deployer, run the following command:
If you have installed Deployer using both methods, running
depcommand will prefer composer-installed version.
If you want build Deployer from source code, clone the project from GitHub:
git clone https://github.com/deployphp/deployer.git
Then run the following command in the project directory:
This will build the
deployer.phar phar archive.
Deployer comes with autocomplete script for bash/zsh/fish, so you don't need to remember all tasks and options. To install run following command:
And follow instructions.
Read getting started next.