google-apps-script icon indicating copy to clipboard operation
google-apps-script copied to clipboard

Changing accounts

Open MikeWarren2014 opened this issue 6 years ago • 2 comments

I have project under my personal account, and just obtained a GSuite account about a month ago. I have a container-bound script under that new account, and instead of subjecting myself to the agony of writing all the code in that awkward code editor online, I wish to write it locally via Visual Studio Code, via this tool. I am signed into both accounts in the browser. How do I, at the command line, switch from my personal account to the GSuite account? (Plain old gas auth isn't giving me the option to switch accounts.)

MikeWarren2014 avatar May 25 '18 00:05 MikeWarren2014

The command is gas auth -f which will spawn a browser and you will be able to switch accounts. Remember after authenticating, you'll need to link to the project under that account.

garymcm avatar Jun 26 '18 11:06 garymcm

gas auth -f indeed give you the option but I'm also thinking about making it possible to be logged into multiple accounts at the same time, so you don't need to switch account at all

MaartenDesnouck avatar Aug 04 '18 20:08 MaartenDesnouck