Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bytrangle/gdrive-search
A Node.js command line application to search for Google Drive files from the comfort of the terminal.
https://github.com/bytrangle/gdrive-search
command-line-app command-line-tool google-api google-drive nodejs
Last synced: 30 days ago
JSON representation
A Node.js command line application to search for Google Drive files from the comfort of the terminal.
- Host: GitHub
- URL: https://github.com/bytrangle/gdrive-search
- Owner: bytrangle
- Created: 2020-10-20T04:11:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-29T05:00:24.000Z (over 3 years ago)
- Last Synced: 2024-11-19T01:51:40.336Z (about 1 month ago)
- Topics: command-line-app, command-line-tool, google-api, google-drive, nodejs
- Language: JavaScript
- Homepage: http://bytrangle.surge.sh
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A CLI App to Search Your Google Drive Files
## How to Use
### Authorization
To search for files in your Google Drive, this app needs to get your permission to access them.
After installation, run `godri authorize` to grant your permission. You only need to do this step once.
Your tokens will be stored in `$HOME/.config/congigstore/godri.json` and has the following parameters:
```
{
"tokens": {
"access_token": "XXXXXXXXXX",
"refresh_token": "XXXXXXXXXX",
"scope": "https://www.googleapis.com/auth/drive.metadata.readonly",
"token_type": "Bearer",
"expiry_date": 1234567890
},
"user": {
"displayName": "Jane Doe",
"emailAddress": "[email protected]"
}
}
```### Search
Once you've authorized with Godri, you can start searching for your Google Drive files with `godri search [options]`.
The keyword is compulsory. If you want to use multi-word, please wrap them in single quote, like so: `godri search 'finance tracker'`.
Accepted options are:
- --file-type, -f: Specify the file types. Accepted formats are `sheets`, `docs`, `forms` and `slides`.
- --owned, -o: Restrict the search results to files that you owned only.
- --name-only, -n: Restrict the search range to files whose only file names match your provided keyword.