From cfd2fd1911ac84db2f38708e36f48fdf484cfd71 Mon Sep 17 00:00:00 2001 From: basebuilder Date: Sat, 6 Apr 2024 14:14:14 +0200 Subject: [PATCH] improve style and add Manually storing app data to abra/cheet-sheet --- docs/abra/cheat-sheet.md | 51 +++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/docs/abra/cheat-sheet.md b/docs/abra/cheat-sheet.md index 990b713..2a3559a 100644 --- a/docs/abra/cheat-sheet.md +++ b/docs/abra/cheat-sheet.md @@ -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 path/to/.app.conf app:/home/app/ +$ abra app cp 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`