Vultr DocsLatest Content


Config

Updated on 07 November, 2025

Retrieves and displays the kubeconfig file for a Vultr Kubernetes cluster to enable kubectl connections.


The vultr-cli kubernetes config command retrieves and outputs Kubernetes cluster configuration, allowing users to access and manage their Vultr Kubernetes clusters using kubectl.

Usage

console
$ vultr-cli kubernetes config <Cluster ID> [flags]

Examples

console
# Full example
$ vultr-cli kubernetes config ffd31f18-5f77-454c-9065-212f942c3c35
$ vultr-cli kubernetes config ffd31f18-5f77-454c-9065-212f942c3c35 --output-file /your/path/

# Shortened with alias commands
$ vultr-cli k config ffd31f18-5f77-454c-9065-212f942c3c35
$ vultr-cli k config  ffd31f18-5f77-454c-9065-212f942c3c35 -o /your/path/

Flags

Shorthand Long Version Description
- --output-file (optional) the file path to write kubeconfig to

Comments