deployer/docs/installation.md

42 lines
933 B
Markdown
Raw Normal View History

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
```
`alias dep='vendor/bin/deployer.phar'`
2019-07-02 08:05:15 +03:00
:::tip Bash completion integration
Deployer comes with autocomplete support for task names, options, and hosts.
2019-07-02 08:05:15 +03:00
Run the next command to add bash completion support:
2021-11-10 23:20:32 +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
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
```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
composer require --dev deployer/deployer
2019-07-02 08:05:15 +03:00
```
2021-11-07 20:50:55 +01:00
:::warning Dependency conflicts
In case of dependency conflicts, install [distribution](#distribution) version.
2021-11-07 20:50:55 +01:00
:::