Show or Check Deployment Tier Version
The tier version
command is used to show the version of the deployment tier.
The --min-version
option is used to compare the specified version against the deployment tier version. If the value of the deployment tier version is equal or greater, the process exits with code 0. Otherwise, it exits with code 1. This result can be used to check if lash init
needs to be run to upgrade a deployment tier.
Options
--min-version <VERSION>
-
(optional) Minimum expected version
--tier|-T <NAME>
-
(optional) Name of deployment tier (default:
LAMBDASHARP_TIER
environment variable) --aws-profile|-P <NAME>
-
(optional) Use a specific AWS profile from the AWS credentials file
--aws-region <NAME>
-
(optional) Use a specific AWS region (default: read from AWS profile)
--verbose|-V[:<LEVEL>]
-
(optional) Show verbose output (0=Quiet, 1=Normal, 2=Detailed, 3=Exceptions; Normal if LEVEL is omitted)
--no-ansi
-
(optional) Disable colored ANSI terminal output
--quiet
-
(optional) Don't show banner or execution time
--no-beep
-
(optional) Don't emit beep when finished
Examples
Show Deployment Tier Version
lash tier version
Output:
LambdaSharp CLI (v0.8.0.3) - Check Tier Version
Deployment tier version: 0.8.0.3
Done (finished: 6/18/2020 9:28:34 PM; duration: 00:00:00.9270535)
Check if Deployment Tier Version is Equal or Greater to 0.8.0.5
Using PowerShell/Bash:
lash tier version --min-version 0.8.0.5
Output:
LambdaSharp CLI (v0.8.0.3) - Check Tier Version
Deployment tier version: 0.8.0.3 [ExitCode: 1]
Done (finished: 6/18/2020 9:29:21 PM; duration: 00:00:00.9652105)
Check if Deployment Tier Version is Equal or Greater to 0.8.0.5 without Output
Using PowerShell/Bash:
lash tier version --min-version 0.8.0.5 --quiet
echo $?
Output:
1