Installation

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

dep self-update

To upgrade to the next major release, if available, use the --upgrade (-u) option:

dep self-update --upgrade

Composer

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:

php vendor/bin/dep

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

Source

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:

php ./build

This will build the deployer.phar phar archive.

Read getting started next.