Linode instances commands
All Linode instances CLI examples
Here you'll find a listing of all of the sub-categories of Linode instances CLI commands and you can see a usage example for each command.
Basic command examples
Here are some common tasks for Linodes you can perform with the Linode CLI.
List all Linodes
Run this basic command to list all of the Linodes on your account—including all Linode plans (types):
linode-cli linodes list
Filter the results
You can also expand the command to filter results to a particular region:
linode-cli linodes list --region us-east
You can also filter your results, based on the Linode's class (or type). For example, run this command to view all of the gpu type Linodes on your account:
linode-cli linodes types --class gpu
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ id ┃ disk ┃ gpus ┃ vcpus ┃ class ┃ label ┃ memory ┃ transfer ┃ successor ┃ network_out ┃ accelerated_devices ┃ price.hourly ┃ price.monthly ┃ region_prices ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ g1-gpu-rtx6000-1 │ 655360 │ 1 │ 8 │ gpu │ Dedicated 32GB + RTX6000 GPU x1 │ 32768 │ 16000 │ None │ 10000 │ 0 │ 1.5 │ 1000.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g1-gpu-rtx6000-2 │ 1310720 │ 2 │ 16 │ gpu │ Dedicated 64GB + RTX6000 GPU x2 │ 65536 │ 20000 │ None │ 10000 │ 0 │ 3.0 │ 2000.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g1-gpu-rtx6000-3 │ 1966080 │ 3 │ 20 │ gpu │ Dedicated 96GB + RTX6000 GPU x3 │ 98304 │ 20000 │ None │ 10000 │ 0 │ 4.5 │ 3000.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g1-gpu-rtx6000-4 │ 2621440 │ 4 │ 24 │ gpu │ Dedicated 128GB + RTX6000 GPU x4 │ 131072 │ 20000 │ None │ 10000 │ 0 │ 6.0 │ 4000.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a1-s │ 524288 │ 1 │ 4 │ gpu │ RTX4000 Ada x1 Small │ 16384 │ 0 │ None │ 16000 │ 0 │ 0.52 │ 350.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a1-m │ 524288 │ 1 │ 8 │ gpu │ RTX4000 Ada x1 Medium │ 32768 │ 0 │ None │ 16000 │ 0 │ 0.67 │ 446.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a1-l │ 524288 │ 1 │ 16 │ gpu │ RTX4000 Ada x1 Large │ 65536 │ 0 │ None │ 16000 │ 0 │ 0.96 │ 638.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a1-xl │ 524288 │ 1 │ 32 │ gpu │ RTX4000 Ada x1 X-Large │ 131072 │ 0 │ None │ 16000 │ 0 │ 1.53 │ 1022.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a2-s │ 1048576 │ 2 │ 8 │ gpu │ RTX4000 Ada x2 Small │ 32768 │ 0 │ None │ 16000 │ 0 │ 1.05 │ 700.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a2-m │ 1048576 │ 2 │ 16 │ gpu │ RTX4000 Ada x2 Medium │ 65536 │ 0 │ None │ 16000 │ 0 │ 1.34 │ 892.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a2-hs │ 2097152 │ 2 │ 16 │ gpu │ RTX4000 Ada x2 Medium High Storage │ 65536 │ 0 │ None │ 16000 │ 0 │ 1.49 │ 992.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a4-s │ 2097152 │ 4 │ 32 │ gpu │ RTX4000 Ada x4 Small │ 131072 │ 0 │ None │ 16000 │ 0 │ 2.96 │ 1976.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
├─────────────────────┼─────────┼──────┼───────┼───────┼────────────────────────────────────┼────────┼──────────┼───────────┼─────────────┼─────────────────────┼──────────────┼───────────────┼───────────────────────────┤
│ g2-gpu-rtx4000a4-m │ 2097152 │ 4 │ 48 │ gpu │ RTX4000 Ada x4 Medium │ 200704 │ 0 │ None │ 16000 │ 0 │ 3.57 │ 2384.0 │ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ id hourly monthly │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ ━━━━━━━━━━━━━━━━━━━━━━━ │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└─────────────────────┴─────────┴──────┴───────┴───────┴────────────────────────────────────┴────────┴──────────┴───────────┴─────────────┴─────────────────────┴──────────────┴───────────────┴───────────────────────────┘
Filtering works on many fields throughout the CLI. Use --help for each action to see which properties are filterable.
Create a Linode
There are several types of Linode available, depending on your processing needs.
Create a standard Linode
A standard Linode uses a Dedicated CPU or Shared CPU Linode Plan. You can run this basic command to create a new standard Linode, using a dedicated CPU:
linode-cli linodes create --root_pass mypassword
The defaults you specified when you configured the CLI are used for the new Linode, including the Linode plan (type), region, and image.
Customize a standard Linode
You can override the defaults you set during CLI configuration, by specifying them in the command:
linode-cli linodes create --root_pass mypassword --region us-east --image linode/debian9 --group webservers
If you're not writing a script, it's more secure to use --root_pass without specifying a password. Instead, you'll be prompted to enter a password:
linode-cli linodes create --root_pass
Create a GPU Linode
GPU-optimized Linodes are accelerated by NVIDIA RTX 4000 Ada or NVIDIA Quadro RTX 6000 that harness the power of CUDA, Tensor, and RT cores to execute complex processing, transcoding, and ray tracing workloads.
GPU Linode availability is limited. See GPU Linodes for complete details.
Run this command to create a new Linode, using an RTX4000 Ada x1 Small GPU:
linode-cli linodes create --region us-ord --type g2-gpu-rtx4000a1-s --image linode/ubuntu24.04 --root_pass <your root password>
┌──────────┬────────────────┬────────┬────────────────────┬────────────────────┬──────────────┬─────────────────┬─────────────────┬───────────────────────┐
│ id │ label │ region │ type │ image │ status │ ipv4 │ disk_encryption │ placement_group.label │
├──────────┼────────────────┼────────┼────────────────────┼────────────────────┼──────────────┼─────────────────┼─────────────────┼───────────────────────┤
│ 12345678 │ linode12345678 │ us-ord │ g2-gpu-rtx4000a1-s │ linode/ubuntu24.04 │ provisioning │ 123.123.123.123 │ enabled │ │
└──────────┴────────────────┴────────┴────────────────────┴────────────────────┴──────────────┴─────────────────┴─────────────────┴───────────────────────┘
Create an Accelerated Linode
Accelerated Linodes are backed by NETINT Quadra T1U video processing units—ASIC-based media accelerator cards that are purpose-built for transcoding tasks.
Accelerated Linode availability is limited. See Accelerated Linodes for complete details.
Run this command to create a new Linode, using a NETINT Quadra T1U x1 small VPU:
linode-cli linodes create --region us-lax --type g1-accelerated-netint-vpu-t1u1-s --image linode/ubuntu24.04 --root_pass <your root password>
┌──────────┬────────────────┬────────┬──────────────────────────────────┬────────────────────┬──────────────┬─────────────────┬─────────────────┬───────────────────────┐
│ id │ label │ region │ type │ image │ status │ ipv4 │ disk_encryption │ placement_group.label │
├──────────┼────────────────┼────────┼──────────────────────────────────┼────────────────────┼──────────────┼─────────────────┼─────────────────┼───────────────────────┤
│ 12345678 │ linode12345678 │ us-lax │ g1-accelerated-netint-vpu-t1u1-s │ linode/ubuntu24.04 │ provisioning │ 123.123.123.123 │ enabled │ │
└──────────┴────────────────┴────────┴──────────────────────────────────┴────────────────────┴──────────────┴─────────────────┴─────────────────┴───────────────────────┘
Target a specific Linode
Get the Linode's ID
You need a Linode's linode_id to interact with it. You can get it by listing the Linodes on your account, and then storing the target Linode's id as your linode_id for later use:
export linode_id=<id-string>
View a specific Linode
With the linode_id stored, run this command to view details about it:
linode-cli linodes view $linode_id
Booting your Linode
With the linode_id stored, run each of these commands to boot, reboot, or shut down a Linode, respectively:
linode-cli linodes boot $linode_id
linode-cli linodes reboot $linode_id
linode-cli linodes shutdown $linode_id
View IP address on a Linode
With the linode_id stored, run this command to view a list of available IP addresses for a specific Linode:
linode-cli linodes ips-list $linode_id
Add a private IP address
With the linode_id stored, run this command to add a private IP address to a Linode:
linode-cli linodes ip-add $linode_id --type ipv4 --public false
Create a new disk
With the linode_id stored, run this command to create a new disk on a specific Linode:
linode-cli linodes disk-create $linode_id --size 2700 --root_pass mypassword --filesystem raw --no-defaults
Even if you set the
--filesystemtoraw, the defaults you specified when configuring the CLI are used for setting a Linode's disk image for this disk, overriding the filesystem setting. To create a disk without the default image, using only the parameters you send in this command, use the--no-defaultsflag.
List all disks
With the linode_id stored, run this command to list all of the provisioned disks on a specific Linode:
linode-cli linodes disks-list $linode_id
Upgrade your Linode
If an upgrade is available for your Linode, the system places it in the migration queue. Then, the system automatically shuts it down, migrates it, and returns to its last state:
linode-cli linodes upgrade $linode_id
Rebuild a Linode
With the linode_id stored, run this command to rebuild a Linode:
linode-cli linodes rebuild $linode_id --image linode/debian9 --root_pass
You can also rebuild your Linode and add a populated authorized_keys file:
linode-cli linodes rebuild $linode_id --image linode/debian9 --root_pass --authorized_keys "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEC+DOVfw+8Jsw1IPrYCcU9/HCuKayCsV8bXjsHqX/Zq email@example.com"
If your key exists on your filesystem, you can also substitute its value in the CLI command with cat. For example:
linode-cli linodes rebuild $linode_id --image linode/debian9 --root_pass --authorized_keys "$(cat ~/.ssh/id_rsa.pub)"
There's more
Many other actions are available. Use linode-cli linodes --help for a complete list.
Updated about 2 hours ago
