ct list
List releases managed by ct apply from Kubernetes inventory ConfigMaps.
ct list --namespace productionct list [flags]ct list does not use positional arguments.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--namespace | -n | string | — | Namespace to search for release inventory |
--all-namespaces | -A | bool | false | List releases from all namespaces |
--context | — | string | (current) | Kubeconfig context to use |
--output | -o | string | table | Output format: table, json, or yaml |
Examples
Section titled “Examples”List releases in a namespace:
ct list --namespace productionList releases across all namespaces:
ct list --all-namespacesPrint output as JSON:
ct list --all-namespaces --output jsonUse a specific kube context and YAML output:
ct list -n staging --context staging --output yamlHow it works
Section titled “How it works”ct list │ ├─ Create Kubernetes client (uses --context if provided) ├─ Search inventory ConfigMaps managed by ct │ └─ Label selector: app.kubernetes.io/managed-by=ct ├─ Read release metadata from labels ├─ Count tracked resources from inventory data └─ Print results as table, JSON, or YAMLBy default, output is shown as a table with NAME, NAMESPACE, and RESOURCES.