Deployer can be installed in two ways: using phar archive and using composer.

Phar archive

To install Deployer via phar archive, run next commands:

curl -LO
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:

dep self-update

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:

Then to use Deployer, run the following command:

php vendor/bin/dep

If you have installed Deployer using both methods, running dep command will prefer composer-installed version.


If you want build Deployer from source code, clone the project from GitHub:

git clone

Then run the following command in the project directory:

php bin/build

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:

dep autocomplete

And follow instructions.

Read getting started next.