CLI for Google Drive
- Get Google API credentials from
https://console.cloud.google.com/apis/credentials and store in
.run/secrets.json
. - Ensure the Drive API is enabled for these credentials, e.g.
gcloud services enable drive
. - Then try it:
yarn install && yarn link
gdrive list [<start-of-name>]
gdrive download <fileId>
gdrive upload <path>
More verbs to come.