2019-07-02 08:05:15 +03:00
|
|
|
# Installation
|
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
## Globally
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-04-09 22:49:41 +02:00
|
|
|
To install Deployer as phar archive globally, run the following commands:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
|
|
|
```sh
|
|
|
|
curl -LO https://deployer.org/deployer.phar
|
|
|
|
mv deployer.phar /usr/local/bin/dep
|
|
|
|
chmod +x /usr/local/bin/dep
|
|
|
|
```
|
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
:::tip CLI Autocomplete
|
2021-11-22 03:23:57 -05:00
|
|
|
Deployer comes with autocomplete support for task names, options, and hosts.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-22 03:23:57 -05:00
|
|
|
Add the following to your `~/.bashrc` or `~/.zshrc`:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2021-12-17 09:29:18 +01:00
|
|
|
eval "$(dep autocomplete --install)
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
2021-11-07 17:15:16 +01:00
|
|
|
:::
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
## Distribution
|
2019-07-02 08:05:15 +03:00
|
|
|
|
|
|
|
```sh
|
|
|
|
composer require deployer/dist --dev
|
|
|
|
```
|
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
:::tip Global and local Deployer
|
|
|
|
If you call a globally installed Deployer via `/usr/local/bin/dep` in a project
|
|
|
|
directory with a locally installed Deployer at `vendor/bin/dep`, Deployer will
|
2021-11-22 03:23:57 -05:00
|
|
|
redirect the call to a local Deployer.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2021-11-07 17:15:16 +01:00
|
|
|
~/project $ dep --version
|
|
|
|
Using ~/project/vendor/bin/dep
|
|
|
|
Deployer 7.0.0
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
2021-11-07 17:15:16 +01:00
|
|
|
:::
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
## Source
|
2019-07-02 08:05:15 +03:00
|
|
|
|
|
|
|
```sh
|
2021-04-09 22:49:41 +02:00
|
|
|
composer require deployer/deployer --dev
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
|
|
|
|
2021-11-07 20:50:55 +01:00
|
|
|
:::warning Dependency conflicts
|
2021-11-22 03:23:57 -05:00
|
|
|
In case of dependency conflicts, install [distribution](#distribution) version.
|
2021-11-07 20:50:55 +01:00
|
|
|
:::
|