forked from toolshed/docs.coopcloud.tech
		
	improve style and add Manually storing app data to abra/cheet-sheet
This commit is contained in:
		@ -7,20 +7,37 @@ title: Cheat sheet
 | 
			
		||||
!!! info
 | 
			
		||||
    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 app config $APPNAME`
 | 
			
		||||
- `abra app secret generate $APPNAME -a`
 | 
			
		||||
flags: `-p/--pass`, `-a/--all`
 | 
			
		||||
- `abra app deploy $APPNAME`
 | 
			
		||||
flags: `-f/--force`, `-C/--chaos`
 | 
			
		||||
```
 | 
			
		||||
$ abra autocomplete bash
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Create & deploy an app
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ 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
 | 
			
		||||
@ -75,6 +92,18 @@ $ abra recipe release $RECIPE [$VERSION]
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
Edit the files in `~/.abra/recipe/$RECIPENAME`
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user