Phar is the best distribution mechanism for a tool.
To install Deployer as phar archive globally, run the following commands:
curl -LO https://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/dep
After installing Deployer globally with will be able to initialize a recipe in new project with just
If you need another version of Deployer, you can find it on the download page. Later, to upgrade Deployer, run the command:
To upgrade to the next major release, if available, use the
dep self-update --upgrade
composer require deployer/dist --dev
Then to use Deployer, run the following command:
This is preferred method of installing Deployer in composer project. In distribution repo only phar is committed, and its dependencies will not conflict with your project dependencies.
deployer.phar and commit it. Totally okay. Update it via
Use it if you really need Deployer source files.
composer require deployer/deployer --dev
Deployer comes with an autocomplete support for bash & zsh, so you don't need to remember task names and options.
Add next line to your
eval "$(dep autocomplete)"
Read getting started next.