How do I clear ALL account/profile in the Twilio CLI so that i doesnt ask me to select a pre-saved sid?

2.9k Views Asked by At

I'm using the Twilio CLI trying to deploy a flex plugin using

npm run deploy

The issue is that upon invoking this command, it asks me to select an account side

Uploading your Flex plugin to Twilio Assets

Choose one of the following Account Sids:

ACx1

ACx2

The problem is, I have NO idea where these two suggested account sids are coming from. They must be an old profile I created in the past.

How do I clear these completely, so that I dont have it assume I want to select these?

My account sid is not even listed, call it ACx3

So the CLI is somehow assuming that I am only interested in either of the 2 pre-populated Account SIDS. Whereas I have a 3rd non-listed account sid I need to deploy to.

1

There are 1 best solutions below

3
On

To see which profiles are already set up, you can run twilio profiles:list. This should return the ID (shorthand identifier), Account SID, and "Active" status of each profile.

Then, you can run twilio profiles:remove "SHORTHAND IDENTIFIER" to remove the profile that you'd like to get rid of.

To add your new profile, use twilio profiles:add or just twilio login. Finally, activate your profile by running twilio profiles:use "SHORTHAND IDENTIFIER". You'll be prompted to specify a shorthand identifier when you create your new project.


Some additional Twilio CLI tips which I've found helpful and might be helpful to you as well:

  • The Twilio CLI has helper documentation for most of its commands. Just append --help to any command to view them.
  • Running twilio autocomplete zsh or twilio autocomplete bash will get you set up with autocomplete, which is helpful for exploring the functionality of the CLI.