How do I manage multiple accounts with the Linode CLI?

Linode Staff

I have multiple accounts that I'd like to use with the Linode CLI. How can I set that up?

1 Reply

You can add multiple access tokens to the Linode CLI using linode-cli configure to set up each user. Just be sure to choose the correct option when asked if you'd like to set the current user as the default. You can then switch users on a per-command basis using the --as-user flag. For instance, you can list the Linodes which the user exampleuser has access to with a command like the following:

linode-cli --as-user exampleusername linodes list

You can also list configured users with the show-users command:

linode-cli show-users

Change users using the 'set-user' command:

linode-cli set-user secondexampleuser

And remove users with the remove-user command:

linode-cli remove-user thirdexampleuser

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct