Updated on 2025-04-03 GMT+08:00

ccictl config view

Scenario

Display merged cliconfig settings or a specified cliconfig file.

You can use --output jsonpath={...} to extract specific values using the JSONPath expression.

ccictl config view [flags]

Examples

# Display merged cliconfig settings.
ccictl config view

# Display merged cliconfig settings, raw certificate data, and exposed secrets.
ccictl config view --raw

# Obtain the password for the e2e user.
ccictl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'

Options

--allow-missing-template-keys     Default: true

If the value is true, the error in the template is ignored when a field or mapping key is missing in the template. This option applies only to the Golang and JSONPath output formats.

--flatten

Flatten the generated cliconfig file into a self-contained output (useful for creating portable cliconfig files).

-h, --help

Help information for view

--merge tristate[=true]     Default: true

Merge the full hierarchy of cliconfig files.

--minify

Remove all information not used by the current context from the output.

-o, --output string     Default: "yaml"

Output format. The value options include json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, and jsonpath-file.

--raw string

Display raw byte data and sensitive data.

--template string

Template character string or template file path used when -o is set to go-template or go-template-file. The Golang template format is [http://golang.org/pkg/text/template/#pkg-overview].

The following ccictl options can also be used in subcommands:

Parent command options