Vultr DocsLatest Content


Config

Updated on 15 September, 2025

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


The vultr-cli kubernetes config command retrieves and displays the kubeconfig file for a specified Vultr Kubernetes cluster, enabling connection to the cluster 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

No comments yet.