Cli to create access token for google sheets and google drive
When you want to play with Google Drive
or Google Sheets
API
with a simple bash script
or in your CI/CD pipeline
, you will need to have a clientId
, a clientSecret
and offline access_token
and refresh_token
linked to your google account.
To do that you can follow this process:
https://developers.google.com/identity/protocols/oauth2/web-server
At the end, the cli will create a .env
file with the Google ClientId
/ ClientSecret
/ AccessToken
/ RefreshToken
$ npx iblis-cli-token-google-oauth-web-server getGooToken
or
$ npm install -g iblis-cli-token-google-oauth-web-server
$ getGooToken