improve style and add Manually storing app data to abra/cheet-sheet
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
36e18bdc62
commit
cfd2fd1911
@ -7,20 +7,37 @@ title: Cheat sheet
|
|||||||
!!! info
|
!!! info
|
||||||
not all flags are listed here.
|
not all flags are listed here.
|
||||||
|
|
||||||
!!! warning
|
|
||||||
Definitely set up autocomplete or you'll be sad
|
|
||||||
|
|
||||||
`abra autocomplete bash/zsh/fizsh`
|
### Abra Autocomplete
|
||||||
|
|
||||||
### Create & deploy a new app:
|
Definitely set up autocomplete or you'll be sad :sob: `abra` supports `bash`,
|
||||||
|
`zsh`, and `fizsh` just run
|
||||||
|
|
||||||
- `abra app new $RECIPE`
|
```
|
||||||
flags: `-s/--server`, `-D/--domain`, `-S/--secrets`, `-p/--pass`
|
$ abra autocomplete bash
|
||||||
- `abra app config $APPNAME`
|
```
|
||||||
- `abra app secret generate $APPNAME -a`
|
|
||||||
flags: `-p/--pass`, `-a/--all`
|
|
||||||
- `abra app deploy $APPNAME`
|
### Create & deploy an app
|
||||||
flags: `-f/--force`, `-C/--chaos`
|
|
||||||
|
```
|
||||||
|
$ abra app new $RECIPE`
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional flags: `-s/--server`, `-D/--domain`, `-S/--secrets`, `-p/--pass`
|
||||||
|
|
||||||
|
```
|
||||||
|
$ abra app config $APPNAME
|
||||||
|
$ abra app secret generate $APPNAME -a
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional flags: `-p/--pass`, `-a/--all`
|
||||||
|
|
||||||
|
```
|
||||||
|
$ abra app deploy $APPNAME
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional flags: `-f/--force`, `-C/--chaos`
|
||||||
|
|
||||||
|
|
||||||
### Restarting an app
|
### Restarting an app
|
||||||
@ -75,6 +92,18 @@ $ abra recipe release $RECIPE [$VERSION]
|
|||||||
Optional flags: `-p/--publish`, `-r/--dry-run`, `-x,y,z`
|
Optional flags: `-p/--publish`, `-r/--dry-run`, `-x,y,z`
|
||||||
|
|
||||||
|
|
||||||
|
### Manually restoring app data
|
||||||
|
|
||||||
|
To manually restore app data or configurations, you can use the `cp` command as:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ abra app cp <domain> path/to/.app.conf app:/home/app/
|
||||||
|
$ abra app cp <domain> path/to/data app:/home/app/
|
||||||
|
```
|
||||||
|
|
||||||
|
*Note: the destination must be a directory and not a filename*
|
||||||
|
|
||||||
|
|
||||||
### Make changes to a recipe
|
### Make changes to a recipe
|
||||||
|
|
||||||
Edit the files in `~/.abra/recipe/$RECIPENAME`
|
Edit the files in `~/.abra/recipe/$RECIPENAME`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user