← Back to tools

Linode CLI

Manage Linode (Akamai) cloud infrastructure from the terminal

Cloud & Services linuxmacoswindows Python BSD-3-Clause

Description

The Linode CLI provides command-line access to the Linode (Akamai Connected Cloud) platform. It wraps the Linode API to let you create and manage Linodes, volumes, databases, Kubernetes clusters, NodeBalancers, and all other Linode products from the terminal.

Install

pippip install linode-cli

AI Summary

Official Linode (Akamai) CLI for managing cloud instances, Kubernetes clusters, volumes, databases, NodeBalancers, and all Linode services from the terminal.

Capabilities

  • + Create and manage Linode instances (virtual machines)
  • + Manage Linode Kubernetes Engine (LKE) clusters
  • + Provision volumes, databases, and object storage
  • + Configure NodeBalancers for load balancing
  • + Manage DNS domains and records
  • + Output in JSON, table, or text format

Use When

  • Managing Linode/Akamai cloud resources from the command line
  • Scripting infrastructure provisioning on Linode
  • Need quick access to Linode API without writing HTTP requests
  • Automating Linode operations in CI/CD pipelines

Avoid When

  • x Not using Linode as your cloud provider
  • x Need infrastructure as code with state tracking (use Pulumi or Terraform)
  • x Managing multi-cloud deployments

Usage Patterns

Create a Linode instance

linode-cli linodes create --type g6-nanode-1 --region us-east --image linode/ubuntu24.04 --root_pass $(openssl rand -base64 24)

Creates a Nanode instance with Ubuntu 24.04 in US East

List all instances as JSON

linode-cli linodes list --json --pretty

Shows all Linodes in formatted JSON output

Create a Kubernetes cluster

linode-cli lke cluster-create --label my-cluster --region us-east --k8s_version 1.29

Creates an LKE cluster in the specified region

Input / Output

stdin: Accepts interactive input during initial configuration
stdout: Resource listings, operation results in table/JSON/text format
stderr: Error messages and API errors

Typical Pipelines

linode-cli linodes list --json | jq '.[].ipv4[0]' to extract all instance IPs
linode-cli lke kubeconfig-view CLUSTER_ID --json | jq -r '.[].kubeconfig' | base64 -d > kubeconfig.yaml to fetch cluster credentials
linode-cli linodes list --json | jq '.[] | select(.status=="running") | .label' to list running instances

Related Tools

View AGENTS.md for Linode CLI