You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ After [installation](installation.md) of Deployer you will have the ability to r
5
5
To get list of all available tasks run the `dep` command. You can run it from any subdirectories of you project;
6
6
Deployer will automatically find project root dir.
7
7
8
-
```bash
8
+
```
9
9
Deployer
10
10
11
11
Usage:
@@ -32,15 +32,15 @@ Available commands:
32
32
33
33
The best way to configure your `deploy.php` is to automatically deploy to staging on this command:
34
34
35
-
```bash
35
+
```
36
36
dep deploy
37
37
```
38
38
39
39
This is so somebody can't accidentally deploy to production (for production deployment, the `dep deploy production` command explicitly lists the required production stage).
40
40
41
41
You need info about available options and usage use the `help` command:
And you want to enable [ssh multiplexing](https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing) without modifying the file, you can pass the `-o` option to the `dep` command:
84
84
85
-
```bash
85
+
```
86
86
dep deploy -o ssh_multiplexing=true
87
87
```
88
88
89
89
To override multiple config options, you can pass multiple `-o` args:
90
90
91
-
```bash
91
+
```
92
92
dep deploy -o ssh_multiplexing=true -o branch=master
93
93
```
94
94
95
95
### Running arbitrary commands
96
96
97
97
Deployer comes with a command to run any valid command on you server without modifying _deploy.php_
98
98
99
-
```bash
99
+
```
100
100
dep run 'ls -la'
101
101
```
102
102
@@ -112,7 +112,7 @@ To specify the hosts this command has the corresponding options:
112
112
113
113
You can get more info about any commands by using the help command:
114
114
115
-
```bash
115
+
```
116
116
dep help [command]
117
117
```
118
118
@@ -121,7 +121,7 @@ dep help [command]
121
121
Deployer comes with an autocomplete script for bash/zsh/fish, so you don't need to remember all the tasks and options.
122
122
To install it run following command:
123
123
124
-
```bash
124
+
```
125
125
dep autocomplete
126
126
```
127
127
@@ -130,7 +130,7 @@ And follow instructions.
130
130
### Local root directory
131
131
132
132
By default `runLocally()` commands are executed relative to the recipe file directory. This can be overridden globally by setting an environment variable:
0 commit comments