---
name: "kubeadm-token-generate"
section: "1"
platform: "linux"
package: "kubeadm"
version: "1.37.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/kubeadm-token-generate"
---

# kubeadm-token-generate(1)

Generate and print a bootstrap token, but do not create it on the server

Eric Paris Jan 2015

## NAME

kubeadm token generate - Generate and print a bootstrap token, but do not create it on the server

## SYNOPSIS

**kubeadm token generate** \[OPTIONS\]

## DESCRIPTION

This command will print out a randomly-generated bootstrap token that can be used with the "init" and "join" commands.

You don't have to use this command in order to generate a token. You can do so yourself as long as it is in the format "\[a-z0-9\]{6}.\[a-z0-9\]{16}". This command is provided for convenience to generate tokens in the given format.

You can also use "kubeadm init" without specifying a token and it will generate and print one for you.

## OPTIONS INHERITED FROM PARENT COMMANDS

**--dry-run**=false\
 	Whether to enable dry-run mode or not

**--kubeconfig**="/etc/kubernetes/admin.conf"\
 	The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.

**--rootfs**=""\
 	The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.

**--version**=false\
 	\--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version

## SEE ALSO

**[kubeadm-token(1)](/kubeadm-token/1.md)**,

## HISTORY

January 2015, Originally compiled by Eric Paris (eparis at redhat dot com) based on the kubernetes source material, but hopefully they have been automatically generated since!
