---
name: "kubeone-kubeconfig-generate"
section: "1"
platform: "linux"
package: "kubeone"
version: "1.12.3-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/kubeone-kubeconfig-generate"
---

# kubeone-kubeconfig-generate(1)

Generate kubeconfig

## NAME

kubeone-kubeconfig-generate - Generate kubeconfig

## SYNOPSIS

**kubeone kubeconfig generate \[flags\]**

## DESCRIPTION

Generate kubeconfig with given certificate parameters.

## OPTIONS

**--cn**=""\
 	CommonName (CN) for the generated client certificate.

**-h**, **--help**\[=false\]\
 	help for generate

**--on**=\[\]\
 	OrganizationName (ON) for the generated client certificate.

**-s**, **--super-admin**\[=false\]\
 	Generate superadmin kubeconfig, shorthand for --cn @ --on system:masters

**--ttl**=1h0m0s\
 	Time To Live for the generated certificate.

## OPTIONS INHERITED FROM PARENT COMMANDS

**-c**, **--credentials**=""\
 	File to source credentials and secrets from

**-d**, **--debug**\[=false\]\
 	debug output with stacktrace

**-l**, **--log-format**="text"\
 	format for logging

**-m**, **--manifest**="./kubeone.yaml"\
 	Path to the KubeOne config

**-t**, **--tfjson**=""\
 	Source for terraform output in JSON - to read from stdin. If path is a file, contents will be used. If path is a dictionary, **terraform output -json** is executed in this path

**-v**, **--verbose**\[=false\]\
 	verbose output

## EXAMPLE

```
kubeone kubeconfig generate -m mycluster.yaml -t tf.json --super-admin
```

## SEE ALSO

**[kubeone-kubeconfig(1)](/kubeone-kubeconfig/1.md)**

## HISTORY

8-Feb-2026 Auto generated by spf13/cobra
