Guides - Manage Multiple Accounts with the Linode CLI
Access the entire Linode platform from the command line, easily adding, removing, or modifying services.
The Linode CLI can be configured to run commands from multiple users on separate Linode Accounts. This allows you to control multiple accounts, all through the same system, using the Linode CLI. Once multiple users are configured, you can execute commands as a particular user or set a specific user as the default.
Configure an Additional User
To manage another Linode Account, you must configure the Linode CLI with a user on that account. This is accomplished by re-running the Linode CLI configuration utility (see Configure the Linode CLI).
linode-cli configure
View Users
To see which users have already been configured on the Linode CLI, run the following command:
linode-cli show-users
This outputs a list containing the usernames of each user. An asterisks (*
) marks the user that is currently active (the default user).
Configured Users:
* example-user
another-user
Change the Default User
The default user is used when running Linode CLI commands. Run the following command to change the default user, replacing [username] with the name of the user you wish to use.
linode-cli set-user [username]
Run a Command as a Different User
You can run a Linode CLI command as a specific user without needing to change the default user. This is helpful if you need to run a one-off command on a different account. In the command below, replace [username] with the name of the user you wish to use.
linode-cli set-user --as-user [username]
Remove a User from the Linode CLI
If you no longer wish to manage a particular user or account from the Linode CLI, you can remove that user. In the command below, replace [username] with the name of the user you wish to remove.
linode-cli remove-user [username]
This page was originally published on