kosli environment diff
#
Synopsis
#
Diff snapshots.
Specify SNAPPISH_1 and SNAPPISH_2 by:
environmentName~ N'th behind the latest snapshot
environmentName# snapshot number N
environmentName the latest snapshot
kosli environment diff SNAPPISH_1 SNAPPISH_2 [flags]
Flags
#
Flag |
Description |
-h, --help |
help for diff |
-o, --output string |
[defaulted] The format of the output. Valid formats are: [table, json]. (default "table") |
Options inherited from parent commands
#
Flag |
Description |
-a, --api-token string |
The 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 string |
The Kosli user or organization. |
Examples
#
# compare the third latest snapshot in an environment to the latest
kosli environment diff envName~3 envName \
--api-token yourAPIToken \
--owner orgName
# compare two different environments of the same type
kosli environment diff envName1 envName2 \
--api-token yourAPIToken \
--owner orgName