Skip to content

myks inspect apps

Inspect applications
Usage:
myks inspect apps [env-selector [app-selector]] [flags]
Arguments:
env-selector (Optional) Comma-separated list of environments or ALL
When omitted, all environments are processed.
ALL will also process all environments.
Examples: ALL
prod,stage,dev
prod/region1,stage/region1
app-selector (Optional) Comma-separated list of applications or ALL
When omitted, all applications are processed.
ALL will also process all applications.
Examples: ALL
app1,app2
Flags:
-a, --async int sets the number of applications to be processed in parallel
the default (0) is no limit
--buffer-plugin-output buffer plugin output instead of streaming (useful for parallel execution)
--config string config file (default is the first .myks.yaml up the directory tree)
--data-values include final resolved ytt data values
-h, --help help for apps
-l, --log-level string set the logging level (default "info")
-o, --output string output format: "text" or "json" (default "text")
--print-stats print tool resource statistics directly to stdout
--provenance string[="set"] include the file that sets each final data value and helm or ytt-pkg value; "all" also lists the myks built-in data value defaults in the text output
--redundant include data values and helm or ytt-pkg values a file sets to the value it already inherits; exit non-zero if any
--rendered include rendered artifacts from .myks/ if available
--smart-mode.base-revision string base revision to compare against in Smart Mode
if not provided, only local changes will be considered
--smart-mode.only-print string[="text"] only print the list of environments and applications that would be rendered in Smart Mode
accepted values: "text" (default), "json"
legacy boolean values (true, 1, yes) are treated as "text" for backward compatibility
legacy falsey values (false, 0, no) disable Smart Mode only-print (same as leaving it empty)
when used without a value (--smart-mode.only-print), defaults to "text"
Examples:
# Inspect all apps in all environments
myks inspect apps
# Inspect all apps in production and staging
myks inspect apps prod,stage ALL
# Inspect specific apps in all environments
myks inspect apps ALL app1,app2
# Inspect specific apps in specific environments
myks inspect apps prod,stage app1,app2
# Show which data-values, schema, helm or ytt-pkg values file sets each final value
myks inspect apps prod app1 --provenance
# Also list the values that come from the myks built-in defaults
myks inspect apps prod app1 --provenance=all
# Fail when a data-values, helm or ytt-pkg values file sets a value to the one it already inherits (for CI)
myks inspect apps --redundant