Skip to content

Commit ff51d86

Browse files
committed
Update installation.md
1 parent 492078b commit ff51d86

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

docs/installation.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
# Installation
22

3+
## Global installation
4+
35
To install Deployer, run next command in your project dir:
46

57
```
6-
composer require --dev deployer/deployer
8+
composer global require deployer/deployer
79
```
810

9-
To initialize deployer in your project run:
10-
1111
```
12-
vendor/bin/dep init
12+
phive install deployer
1313
```
1414

15-
:::tip Bash integration
16-
Add next alias to your _.bashrc_ file:
15+
Run in your project to create `deploy.php` file:
1716

18-
```bash
19-
alias dep='vendor/bin/dep'
2017
```
18+
dep init
19+
```
20+
21+
:::tip Autocomplete
2122

2223
Deployer comes with autocomplete support for task names, options, and hosts.
2324

@@ -28,4 +29,29 @@ dep completion bash > /etc/bash_completion.d/deployer
2829
```
2930

3031
Make sure what your _.bashrc_ file includes generated file in some way.
32+
3133
:::
34+
35+
## Project installation
36+
37+
To install Deployer in your project, run next command in your project dir:
38+
39+
```
40+
composer require --dev deployer/deployer
41+
```
42+
43+
To initialize deployer in your project run:
44+
45+
```
46+
vendor/bin/dep init
47+
```
48+
49+
## Phar download
50+
51+
You can download deployer phar file from [releases](https://github.com/deployphp/deployer/releases) page.
52+
53+
After downloading, you can run it in your project dir:
54+
55+
```
56+
php deployer.phar init
57+
```

0 commit comments

Comments
 (0)