mvaictl environment get¶
Display environment assets
Examples¶
# List all environment assets
mvaictl environment get
# List a single environment asset with specified NAME
mvaictl environment get foo
# List environment assets in JSON output format
mvaictl environment get -o json
# List a single environment asset in JSON output format
mvaictl environment get -o json foo
# Return only the creationTimestamp value of the specified environment asset
mvaictl environment get foo -o template --template={{.metadata.creationTimestamp}}
# List resource information in custom columns
mvaictl environment get -o custom-columns=NAME:.metadata.name,CREATED:.metadata.creationTimestamp
Options¶
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
--template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
--show-labels When printing, show all labels as the last column (default hide labels column)
--sort-by string If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.
-L, --label-columns strings Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...
--show-kind If present, list the resource type for the requested object(s).
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, wide). See custom columns [https://kubernetes.io/docs/reference/kubectl/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [https://kubernetes.io/docs/reference/kubectl/jsonpath/].
--no-headers When using the default or custom-column output format, don't print headers (default print headers).
--raw string Raw URI to request from the server. Uses the transport specified by the kubeconfig file.
-w, --watch After listing/getting the requested object, watch for changes.
--watch-only Watch for changes to the requested object(s), without listing/getting first.
--output-watch-events Output watch event objects when --watch or --watch-only is used. Existing objects are output as initial ADDED events.
--ignore-not-found If the requested object does not exist the command will return exit code 0.
--field-selector string Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.
--server-print If true, have the server return the appropriate table output. Supports extension APIs and CRDs. (default true)
--chunk-size int Return large lists in chunks rather than all at once. Pass 0 to disable. This flag is beta and may change in the future. (default 500)
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
--subresource string If specified, gets the subresource of the requested object. This flag is beta and may change in the future.
-h, --help help for get
Options inherited from parent commands¶
-c, --config string Path to mvaictl config directory (default "~/.mvaictl")
--warnings-as-errors Treat warnings received from the server as errors and exit with a non-zero exit code
SEE ALSO¶
- mvaictl environment - Operations on environment assets