kosli environment get

kosli environment get #

Get a specific environment snapshot.

Synopsis #

Get a specific environment snapshot. Specify SNAPPISH by: environmentName~ N'th behind the latest snapshot environmentName# snapshot number N environmentName the latest snapshot

kosli environment get ENVIRONMENT-NAME-OR-EXPRESSION [flags]

Flags #

FlagDescription
-h, --helphelp for get
-o, --output string[defaulted] The format of the output. Valid formats are: [table, json]. (default "table")

Options inherited from parent commands #

FlagDescription
-a, --api-token stringThe Kosli API token.
-c, --config-file string[optional] The Kosli config file path. (default "kosli")
--debug[optional] Print debug logs to stdout.
-H, --host string[defaulted] The Kosli endpoint. (default "https://app.kosli.com")
-r, --max-api-retries int[defaulted] How many times should API calls be retried when the API host is not reachable. (default 3)
--owner stringThe Kosli user or organization.

Examples #

# get the latest snapshot of an environment:
kosli environment get yourEnvironmentName
	--api-token yourAPIToken \
	--owner yourOrgName 

# get the SECOND latest snapshot of an environment:
kosli environment get yourEnvironmentName~1
	--api-token yourAPIToken \
	--owner yourOrgName 

# get the snapshot number 23 of an environment:
kosli environment get yourEnvironmentName#23
	--api-token yourAPIToken \
	--owner yourOrgName