Using the CLI
Basic usage
Every command should have the following form:
stacktape <<command>> --option1 <<option1>> --option2 <<option2>> ...more options...
Aliases
For convenience, you can use aliases for stacktape binary itself and for CLI options.
For example the following command:
stacktape deploy --stage production --region eu-west-1 --configPath path/to/my/config.yml --preserveTempFiles
Can be shortened into:
stp deploy --s production --r eu-west-1 --cp path/to/my/config.yml --ptf
Log level
Stacktape prints information about what it's doing to the console. You can customize what's being printed.
You can set log level using:
stacktape <<command>> --logLevel << info | error | debug >>
| Value | Description |
|---|---|
| info (default) | Prints basic information about everything that's happening. |
| error | Prints only errors. |
| debug | Prints detailed information about everything that's happening. Prints every remote call to the AWS services. |
Log format
Adjusts the way logs are printed to the console.
You can set log format using:
stacktape <<command>> --logFormat << fancy | normal | json | basic >>
| Value | Description |
|---|---|
| fancy (default) | Logs are colorized and dynamically re-rendered. |
| normal | Logs are colorized but not dynamically re-rendered. |
| basic | Simple text only |
| json | Logs are printed as JSON objects |