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
|
|
|
|
Deployer comes with an autocomplete support for task names, options, and hosts.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
Add next line to your `~/.bashrc` or `~/.zshrc`:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
```bash
|
|
|
|
eval "$(dep autocomplete --shell bash)"
|
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
|
|
|
|
redirect call to a local Deployer.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-07 17:15:16 +01:00
|
|
|
```bash
|
|
|
|
~/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 17:15:16 +01:00
|
|
|
```warning Dependency conflicts
|
|
|
|
In case of dependencie conflicts install [distribution](#distribution) version.
|
2021-04-09 22:49:41 +02:00
|
|
|
```
|