---
title: Config
url: https://docs.vultr.com/reference/vultr-cli/kubernetes/config
description: Retrieves and displays the kubeconfig file for a Vultr Kubernetes cluster to enable kubectl connections.
publish_date: 2025-09-14T03:07:08.603670Z
last_updated: 2025-11-07T17:48:19.964653Z
---

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 |