Skip to content

cub context list

cub context list

List all contexts

Synopsis

List all available contexts showing current context, server, organization, and user.

SELECTED names everything that asked for a context — the --context flag, the CUB_CONTEXT environment variable, config.yaml — and stars the one in effect, which is the highest-precedence of them in that order.

Examples:

  # List all contexts
  cub context list

  # List contexts (using alias)
  cub context get-contexts
cub context list [flags]

Options

      --columns strings   columns to display; can be repeated or comma-separated (e.g., Slug,Labels.Environment)
  -h, --help              help for list
      --no-headers        Don't print headers for table output
  -o, --output string     Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet             No default output.
      --verbose           Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO