doctl-kubernetes-options
Show options for Kubernetes versions with doctl
TLDR
List regions that support Kubernetes clusters
List machine sizes that can be used in a Kubernetes cluster
List Kubernetes versions that can be used with DigitalOcean clusters
SYNOPSIS
doctl kubernetes options [flags]
PARAMETERS
--access-token-file string
Path to file containing API access token
--access-token-string string
API access token (overrides env or file)
--format string
Output format: table,json,csv,yaml (default table)
--no-color
Disable colored output
--no-header
Hide headers in tabular output
-h, --help
Show help for options
--trace
Enable trace mode; log all requests/responses
--verbose
Enable verbose/debug output
DESCRIPTION
The doctl kubernetes options command prints a list of global options available for all doctl kubernetes subcommands. doctl is DigitalOcean's official CLI tool for interacting with their API to manage infrastructure like Droplets, databases, VPCs, and Managed Kubernetes (DOKS) clusters.
This utility command serves as a quick reference, showing flags such as --cluster-name, --node-pool-name, --context-name, and --kubeconfig. These options allow specifying Kubernetes resources without relying on context detection, streamlining operations like cluster creation, node pool scaling, or kubeconfig management.
Ideal for developers and admins onboarding to DOKS, it avoids needing full documentation lookup. The output is static and local—no API authentication required. Run it anytime to recall configurable parameters enhancing command precision in CI/CD pipelines or terminal workflows.
Integrates with tools like kubectl via generated kubeconfigs from doctl kubernetes cluster kubeconfig.
CAVEATS
Command runs locally without API calls; output fixed to Kubernetes-specific globals. Requires doctl ≥1.8.0 installed.
TYPICAL OUTPUT
Example:
--cluster-name string The name of the Kubernetes cluster
--context-name string Name of the kubeconfig context
--kubeconfig string Path to kubeconfig file
--node-pool-name string Name of the Kubernetes node pool
USAGE TIP
Pipe to grep for specific flags, e.g., doctl kubernetes options | grep cluster.
HISTORY
Introduced in doctl v1.8.0 (July 2018) alongside DigitalOcean Managed Kubernetes launch. Evolved with DOKS features; current in doctl v1.100+. Developed/maintained by DigitalOcean for DOKS ecosystem.


