Manage multiple accounts with the Linode CLI

The Linode CLI can be configured to run commands from multiple users on separate accounts. This lets you 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 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.

šŸ“˜

This does not delete the user on the Akamai cloud computing. It only removes the user from the Linode CLI so you can no longer execute commands as that user.

linode-cli remove-user [username]