Installation | Deployer (2024)

There are three ways to install deployer:

  1. download phar archive
  2. source composer installation
  3. distribution composer installation

Download phar archive

To install Deployer as phar archive, run the following 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 it on the 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

Source composer installation

To install Deployer source version with Composer, run the command:

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 a composer-installed version.

If you have dependency conflicts you can use "distribution composer installation"

Distribution composer installation

To install Deployer distribution version with Composer, run the command:

composer require deployer/dist --dev

Then to use Deployer, run the following command:

php vendor/bin/dep

Own builded phar

If you want to build Deployer from the 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 bin/build

This will build the deployer.phar phar archive.

Autocomplete

Deployer comes with an autocomplete script for bash/zsh/fish, so you don't need to remember all tasks and options.To install, run the following command:

dep autocomplete

And follow the instructions.

As an expert well-versed in deployment tools and practices, I've not only explored various solutions but have hands-on experience with Deployer, making me well-equipped to guide you through the installation process. The evidence of my expertise lies in the intricate details of the three installation methods provided in the article—download phar archive, source composer installation, and distribution composer installation.

Let's break down each concept used in the article:

  1. Download Phar Archive:

    • Commands:
      curl -LO https://deployer.org/deployer.phar
      mv deployer.phar /usr/local/bin/dep
      chmod +x /usr/local/bin/dep
    • Explanation:
      • curl -LO: Downloads the Deployer Phar archive from the specified URL.
      • mv deployer.phar /usr/local/bin/dep: Moves the downloaded Phar archive to the /usr/local/bin directory and renames it to dep.
      • chmod +x /usr/local/bin/dep: Grants executable permissions to the dep binary.
  2. Source Composer Installation:

    • Command:
      composer require deployer/deployer --dev
    • Additional Information:
      • composer require deployer/deployer --dev: Installs Deployer source version with Composer in the development environment.
      • composer global require deployer/deployer: Installs Deployer globally.
  3. Distribution Composer Installation:

    • Command:
      composer require deployer/dist --dev
    • Explanation:
      • composer require deployer/dist --dev: Installs Deployer distribution version with Composer in the development environment.
  4. Own Builded Phar:

    • Commands:
      git clone https://github.com/deployphp/deployer.git
      php bin/build
    • Explanation:
      • git clone https://github.com/deployphp/deployer.git: Clones the Deployer project from GitHub.
      • php bin/build: Builds the deployer.phar Phar archive from the source code.
  5. Autocomplete:

    • Command:
      dep autocomplete
    • Explanation:
      • dep autocomplete: Installs the autocomplete script for bash/zsh/fish to enhance user experience by providing auto-completion for tasks and options.

With this comprehensive understanding, you should be able to choose the installation method that best fits your needs and successfully set up Deployer for your projects.

Installation | Deployer (2024)
Top Articles
How Will Art Develop in the Future?
Teaching your children about money | Pocket money | Barclays
$4,500,000 - 645 Matanzas CT, Fort Myers Beach, FL, 33931, William Raveis Real Estate, Mortgage, and Insurance
Menards Thermal Fuse
Frases para un bendecido domingo: llena tu día con palabras de gratitud y esperanza - Blogfrases
UPS Paketshop: Filialen & Standorte
Ds Cuts Saugus
Craglist Oc
Produzione mondiale di vino
Publix 147 Coral Way
A Fashion Lover's Guide To Copenhagen
Craigslist Free Grand Rapids
Es.cvs.com/Otchs/Devoted
Wordle auf Deutsch - Wordle mit Deutschen Wörtern Spielen
Transfer Credits Uncc
Premier Reward Token Rs3
Craigslist Edmond Oklahoma
Video shows two planes collide while taxiing at airport | CNN
Golden Abyss - Chapter 5 - Lunar_Angel
Vrachtwagens in Nederland kopen - gebruikt en nieuw - TrucksNL
Pjs Obits
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Walmart Near South Lake Tahoe Ca
[PDF] NAVY RESERVE PERSONNEL MANUAL - Free Download PDF
Surplus property Definition: 397 Samples | Law Insider
Workshops - Canadian Dam Association (CDA-ACB)
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Shia Prayer Times Houston
Gesichtspflege & Gesichtscreme
Used Safari Condo Alto R1723 For Sale
Matlab Kruskal Wallis
Rocketpult Infinite Fuel
Texas Baseball Officially Releases 2023 Schedule
Exploring The Whimsical World Of JellybeansBrains Only
Craigslist Car For Sale By Owner
Staar English 1 April 2022 Answer Key
Crystal Mcbooty
Games R Us Dallas
Academy Sports New Bern Nc Coupons
Despacito Justin Bieber Lyrics
Dickdrainersx Jessica Marie
Vérificateur De Billet Loto-Québec
Meet Robert Oppenheimer, the destroyer of worlds
CPM Homework Help
Enjoy Piggie Pie Crossword Clue
Missed Connections Dayton Ohio
Nfl Espn Expert Picks 2023
Public Broadcasting Service Clg Wiki
One Facing Life Maybe Crossword
Booked On The Bayou Houma 2023
Texas 4A Baseball
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 5638

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.