Skip to main content
Version: 8.x

Installation

Two install modes:

  • Global — recommended for everyday use, available from any directory.
  • Project — recommended for CI/CD, pins the version per project.

Global Installation

Install via Composer:

composer global require deployer/deployer

Or via Phive:

phive install deployer
Path to Executable

Composer's global bin directory must be on your PATH. Add to .bashrc / .zshrc:

export PATH="$HOME/.composer/vendor/bin:$PATH"

Reload the shell config (source ~/.bashrc or source ~/.zshrc).

Create the deploy.php recipe in your project:

dep init

Autocomplete Support

Shell completion covers task names, options, hosts, and configs.

  • Bash — write the script and make sure .bashrc sources it:

    dep completion bash > /etc/bash_completion.d/deployer
  • Zsh — write to a directory listed in your fpath:

    dep completion zsh > ~/.zsh/completion/_deployer
  • Fish — Fish auto-loads from this path:

    dep completion fish > ~/.config/fish/completions/deployer.fish

Project Installation

Pins the Deployer version per project — preferred for CI/CD.

composer require --dev deployer/deployer
Configuring Shell Alias

Add an alias so you can type dep instead of vendor/bin/dep:

alias dep='vendor/bin/dep'

Initialize the recipe:

vendor/bin/dep init

Downloading the Phar File

A Phar bundle is also available — see the download page. Commit deployer.phar to your repo to lock the version across local and CI environments.

php deployer.phar init

No Composer required.