# @quangvinh2080/google-drive-cli

> A simple helper cli to interact with google drive.

Latest version **1.0.1** (published 2023-01-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @quangvinh2080/google-drive-cli
pnpm add @quangvinh2080/google-drive-cli
yarn add @quangvinh2080/google-drive-cli
bun add @quangvinh2080/google-drive-cli
```

Provides the command `google-drive`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-01-23 |
| First published | 2022-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 10 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | quangvinh2080 |
| Maintainers | quangvinh2080 |
| Keywords | oclif, cli, google drive |

## Links

- npm: https://www.npmjs.com/package/@quangvinh2080/google-drive-cli
- Repository: https://github.com/quangvinh2080/google-drive-cli
- Issues: https://github.com/quangvinh2080/google-drive-cli/issues
- npm.io page: https://npm.io/package/@quangvinh2080/google-drive-cli

## Dependencies (10)

- [husky](https://npm.io/package/husky.md) ^7.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.0.0
- [cli-ux](https://npm.io/package/cli-ux.md) ^5.4.5
- [googleapis](https://npm.io/package/googleapis.md) ^84.0.0
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.35
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1.15.1
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1.6.1
- [semantic-release](https://npm.io/package/semantic-release.md) ^17.0.6
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^5.1.12

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-01-23
- 1.0.0 — 2022-08-30
- 0.0.4 — 2022-08-29
- 0.0.3 — 2022-08-26

## README

# google-drive-cli

A simple helper cli to interact with google drive.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@quangvinh2080/google-drive-cli.svg)](https://npmjs.org/package/@quangvinh2080/google-drive-cli)
[![Downloads/week](https://img.shields.io/npm/dw/@quangvinh2080/google-drive-cli.svg)](https://npmjs.org/package/@quangvinh2080/google-drive-cli)
[![License](https://img.shields.io/npm/l/@quangvinh2080/google-drive-cli.svg)](https://github.com/quangvinh2080/google-drive-cli/blob/master/package.json)

[![CodeQL](https://github.com/quangvinh2080/google-drive-cli/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/quangvinh2080/google-drive-cli/actions/workflows/codeql-analysis.yml)
[![Test version](https://github.com/quangvinh2080/google-drive-cli/actions/workflows/test.yml/badge.svg)](https://github.com/quangvinh2080/google-drive-cli/actions/workflows/test.yml)

- [google-drive-cli](#google-drive-cli)
  - [Usage as CLI](#usage-as-cli)
  - [Usage as library](#usage-as-library)
- [Command Topics](#command-topics)
- [Info](#info)
  - [Build with](#build-with)
  - [Contributing](#contributing)
  - [Versioning](#versioning)
  - [License](#license)
  - [TODO](#todo)

## Usage as CLI
<!-- usage -->
```sh-session
$ 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
...
```
<!-- usagestop -->

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](https://github.com/quangvinh2080/google-drive-cli/blob/master/src/lib/google-drive.ts)_

<!-- commands -->
# Command Topics

* [`google-drive about`](docs/about.md) - About your drive
* [`google-drive drives`](docs/drives.md) - Manage drives
* [`google-drive files`](docs/files.md) - Manage files
* [`google-drive help`](docs/help.md) - Display help for google-drive.

<!-- commandsstop -->

# Info

## Build with

- [googleapis](https://github.com/googleapis/googleapis) - The node module used for manipulating the google drive
- [oclif](https://oclif.io) - The node module used to create the cli
- [semantic-release](https://github.com/semantic-release/semantic-release) - for releasing new versions
- [typescript](https://www.typescriptlang.org)

## Contributing

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

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

## TODO

- [x] documentation
- [ ] more tests
- [ ] add prettier

---
_Source: https://npm.io/package/@quangvinh2080/google-drive-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
