How to Install and Configure the Linode CLI
Disclosure. This page contains links to products that may earn us a small commission at no extra cost to you, should you click on them and make a purchase. Read full disclosure.
The Linode CLI is a command line utility that lets you deploy and configure services on Linode without needing to use the web user interface. This tutorial, will show you how to install and configure the Linode CLI.
Step 1: Create Personal Access Token
Login to your Linode account. If you don’t have an account, you can get $100 free credit by using the following affiliate link.
Linode* <– $100 Credit.
After logging in, go to the API Tokens page and click the Create a Personal Access Token button.
Give the Token a name, an expiry date and select what access it should have.
Scroll to the bottom and click Create Token.
Copy the token and save it to a safe place on your computer. We will use it in Step 3 when configuring the Linode CLI.
Step 2: Install Linode CLI
The easist way to install the Linode CLI is using the Python 3 package manager (
pip3). Open a command prompt and run the following command to install the Linode CLI.
pip3 install linode-cli --upgrade
Step 3: Configure Linode CLI
Once installed we need to configure it by assigning the token we created in Step 1 otherwise we wont have permission to create nodes etc.
linode-cli configure --token
You will be asked to enter the token.
Welcome to the Linode CLI. This will walk you through some initial setup. First, we need a Personal Access Token. To get one, please visit https://cloud.linode.com/profile/tokens and click "Create a Personal Access Token". The CLI needs access to everything on your account to work correctly. Personal Access Token:
Copy and paste the token you created in Step 1 and press Return.
Step 4: Test Linode CLI
We should now be able to use the Linode CLI. Let’s test it by listing Linodes.
linode-cli linodes list --all