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
|
|
|
|
```
|
|
|
|
|
2022-03-18 23:33:41 +01:00
|
|
|
`alias dep='vendor/bin/deployer.phar'`
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-03-18 23:33:41 +01:00
|
|
|
:::tip Bash completion integration
|
|
|
|
Deployer comes with autocomplete support for task names, options, and hosts.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-03-18 23:33:41 +01:00
|
|
|
Run the next command to add bash completion support:
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2022-03-18 23:33:41 +01:00
|
|
|
dep completion bash > /usr/local/etc/bash_completion.d/deployer
|
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
|
|
|
|
2022-01-10 18:09:42 +01:00
|
|
|
This is the preferable installation method. The **deployer/dist** contains the
|
|
|
|
phar archive checked out at [deployphp/distribution](https://github.com/deployphp/distribution) repo.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-01-10 18:09:42 +01:00
|
|
|
```sh
|
|
|
|
composer require --dev deployer/dist
|
2021-11-10 23:20:32 +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
|
2022-01-10 18:09:42 +01:00
|
|
|
composer require --dev deployer/deployer
|
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
|
|
|
:::
|