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

ccictl config get-contexts

Scenario

Display one or more contexts in the cliconfig file.

ccictl config get-contexts [(-o|--output=)name)]

Examples

# List all contexts in the cliconfig file.
ccictl config get-contexts

# Describe a context in the cliconfig file.
ccictl config get-contexts my-context

Options

-h, --help

Help information for get-contexts

--no-headers

When the default or custom column output format is used, do not print the headers (which are printed by default).

-o, --output string

Output format. The value can be name.

The following ccictl options can also be used in subcommands:

Parent command options