A simple helper cli to interact with google drive.
$ 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"
You can import the GoogleDrive class as a module and use it without the cli functionality. See code: src/lib/google-drive.ts
google-drive about
- About your drivegoogle-drive drives
- Manage drivesgoogle-drive files
- Manage filesgoogle-drive help
- Display help for google-drive.
- 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
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE file for details
- documentation
- more tests
- add prettier