Skip to content

quangvinh2080/google-drive-cli

Repository files navigation

google-drive-cli

A simple helper cli to interact with google drive.

oclif Version Downloads/week License

CodeQL Test version

Usage as CLI

$ npm install -g @quangvinh2080/google-drive-cli
$ google-drive COMMAND
running command...
$ google-drive (-v|--version|version)
@quangvinh2080/google-drive-cli/1.0.0 linux-x64 node-v12.22.7
$ google-drive --help [COMMAND]
USAGE
  $ google-drive COMMAND
...

If you don't want to input email and private key on every command, export it as environment variables, you can copy these information in your service-account.json that downloaded from google

Linux

export GDRIVE_CLIENT_EMAIL="[email protected]"
export GDRIVE_PRIVATE_KEY="service account's private key"

Windows

$env:GDRIVE_CLIENT_EMAIL="[email protected]"
$env:GDRIVE_PRIVATE_KEY="service account's private key"

Usage as library

You can import the GoogleDrive class as a module and use it without the cli functionality. See code: src/lib/google-drive.ts

Command Topics

Info

Build with

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

TODO

  • documentation
  • more tests
  • add prettier

About

About A simple helper cli to interact with google drive.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages