Many accounts, one OAuth app
Set up your OAuth app once, log in to each account, and pick the active one.
$
goog auth setup$
goog auth login$
goog auth switch alice@example.comSign in to many Google accounts with one OAuth app, and reach Drive, Docs, Sheets and Gmail without switching accounts.
Set up your OAuth app once, log in to each account, and pick the active one.
goog auth setupgoog auth logingoog auth switch alice@example.comCommands that target a file try the remembered account, then the active account, then the rest, and remember which one worked. --account uses exactly that account.
goog --account bob@example.com drive lsList, upload and download Drive files, read Docs and Sheets, and search Gmail.
goog drive upload ./report.pdf --folder FOLDER_IDgoog sheets values get SPREADSHEET_ID 'Sheet1!A1:D10'goog mail list --limit 10