google-drive-cli
A simple helper cli to interact with google drive.
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.1 linux-x64 node-v14.15.5
$ 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:
export GDRIVE_CLIENT_EMAIL=example@email.com
export 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
-
google-drive about
- About your drive -
google-drive drives
- Manage drives -
google-drive files
- Manage files -
google-drive help
- Display help for google-drive.
Info
Build with
- googleapis - The node module used for manipulating the google drive
- oclif - The node module used to create the cli
- semantic-release - for releasing new versions
- typescript
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
- [x] documentation
- [ ] more tests
- [ ] add prettier