2017-12-13 16:18:16 +00:00
|
|
|
# dep
|
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
> A CLI tool for deployment of PHP applications.
|
|
|
|
> Note: The Go command `dep` with the same name is deprecated and archived.
|
|
|
|
> More information: <https://deployer.org>.
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Interactively initialize deployer in the local path (use a framework template with `--template={{template}}`):
|
2017-12-13 16:18:16 +00:00
|
|
|
|
|
|
|
`dep init`
|
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Deploy an application to a remote host:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep deploy {{hostname}}`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Rollback to the previous working release:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep rollback`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- Connect to a remote host via ssh:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep ssh {{hostname}}`
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
- List commands:
|
2017-12-13 16:18:16 +00:00
|
|
|
|
2020-10-09 16:14:28 +01:00
|
|
|
`dep list`
|
|
|
|
|
|
|
|
- Run any arbitrary command on the remote hosts:
|
|
|
|
|
|
|
|
`dep run "{{command}}"`
|
|
|
|
|
|
|
|
- Display help for a command:
|
|
|
|
|
|
|
|
`dep help {{command}}`
|