Skip to main content
Streamline your Kubernetes workflow by using the Linode CLI to provision, list, and delete LKE clusters directly from your terminal. This guide walks you through installation, configuration, and common commands.

Prerequisites

  • Python 3.x and pip3 installed
  • A Linode API Token with Read/Write access (create one in the Linode Cloud Manager)
Make sure your API token includes lke:read_write scopes to manage clusters.

1. Install the Linode CLI

  1. Verify pip3 is available:
  2. Install the Linode CLI package:
  3. Confirm the installation:

2. Configure the CLI

Authenticate the CLI with your token:
If you omit --token, the CLI launches a browser flow to log in and prompts for region and default Linode type.

3. List Your LKE Clusters

Retrieve all existing Kubernetes clusters on your account:
If there are no clusters, the output will be an empty array: [].

4. Create a New LKE Cluster

Use linode-cli lke clusters-create with the following flags: Example command:
If you see an error like Must be unique, update --label to a name not already in use.
Successful response:

5. Delete an LKE Cluster

When you no longer need a cluster, remove it with:
Deleting a cluster is irreversible and will remove all associated resources.

CLI Command Reference


Watch Video