{"id":13586214,"url":"https://github.com/nurdtechie98/drive-cli","last_synced_at":"2025-05-16T12:00:25.976Z","repository":{"id":33895419,"uuid":"161770480","full_name":"nurdtechie98/drive-cli","owner":"nurdtechie98","description":"A command line interface for accessing google drive","archived":false,"fork":false,"pushed_at":"2023-04-14T19:20:16.000Z","size":43841,"stargazers_count":576,"open_issues_count":36,"forks_count":89,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-12T00:36:52.141Z","etag":null,"topics":["cli","command-line-tool","google","google-drive","google-drive-cli","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nurdtechie98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-14T10:39:42.000Z","updated_at":"2025-04-24T18:52:25.000Z","dependencies_parsed_at":"2024-01-08T08:04:01.218Z","dependency_job_id":null,"html_url":"https://github.com/nurdtechie98/drive-cli","commit_stats":{"total_commits":126,"total_committers":12,"mean_commits":10.5,"dds":0.5079365079365079,"last_synced_commit":"9a285851973026488d97190cbe10b40c4694f14f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurdtechie98%2Fdrive-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurdtechie98%2Fdrive-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurdtechie98%2Fdrive-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurdtechie98%2Fdrive-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nurdtechie98","download_url":"https://codeload.github.com/nurdtechie98/drive-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527071,"owners_count":22085917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line-tool","google","google-drive","google-drive-cli","python"],"created_at":"2024-08-01T15:05:24.274Z","updated_at":"2025-05-16T12:00:25.940Z","avatar_url":"https://github.com/nurdtechie98.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"\" rel=\"noopener\"\u003e\n \u003cimg height=200px src=\"https://i.imgur.com/QEcBZSh.png\" alt=\"Briefly-logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eDrive Cli\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![PyPI version](https://badge.fury.io/py/drive-cli.svg)](https://badge.fury.io/py/drive-cli)\n[![Python version](https://img.shields.io/badge/python-3.4+-blue.svg)](https://www.python.org/download/releases/3.4.0/)\n[![Build Status](https://travis-ci.org/nurdtechie98/drive-cli.svg?branch=dev)](https://travis-ci.org/nurdtechie98/drive-cli)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003ch4\u003eGet the ability to access \u003cstrong\u003eGoogle Drive\u003c/strong\u003e without leaving your terminal.\u003c/h4\u003e\n\n\u003c/div\u003e\n\n-----------------------------------------\n### Inspiration\n\n* Google Drive has become a vital part of our day to day life. As much as non-programmers use it, so do programmers in several situations, where we need not use git/github. \n\n* Drive-CLI is a command-line utility for google drive which helps you access, sync, download, upload, etc. directly to your drive without leaving the command-line. The best part being the commands are similar to git CLI so that you can easily remember them :massage:  \n\n------------------------------------------\n### Features\n\n- `view-files`: list your files; filter them by name, type.\n- `clone`: download file/folder from drive using sharing link or file ID and get it linked.\n- `add-remote`: upload existing local file to drive and get it linked.\n- `cat`: view files contents of text format without actually downloading them.\n- `rm`: remove particular file or folder.\n- `ls`: list all the files present in the drive of equivalent current directory.\n- `status`: list changes made to local files since last push or pull.\n- `pull`: get latest changes from drive to local files.\n- `push`: push the local changes to drive.\n\n------------------------------------------\n### Demo\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./Demo.gif\"\u003e\n\u003c/p\u003e\n\n\n------------------------------------------\n### Installation\n* For Usage\n```sh\n    #install using pip \n    $ pip install drive-cli\n```\n* For Development\n    * clone the repo\n    ```sh\n        $ git clone https://github.com/nurdtechie98/drive-cli.git\n    ```\n    * get your `client_secret.json` from [Oauth](https://console.cloud.google.com/apis/credentials/oauthclient). Make sure to enable [Drive Api](https://console.cloud.google.com/apis/library/drive.googleapis.com?q=Drive) for the project.\n    * rename the client secret to `oauth.json` and place it in the [drive_cli](./drive_cli) directory.\n    * install the package:\n    ```sh\n        # move into package directory\n        $ cd drive-cli\n        # install package in edit mode\n        $ pip install -e . #note the dot\n    ```\n\n------------------------------------------\n### Usage\n\n#### Clone\nDownload a file or folder present in drive using its file id or its sharing link. In case it is a folder it gets tracked.\n\n```sh\n# using file id note: since it is google doc it will be asked for a choice to select from\n$ drive clone 1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks\nChoose type to export to\n (ENTER to select, s to stop):\n\n =\u003e pdf\n    txt\n    doc\n    zip\n    html\n    rtf\n    odt\nPreparing: watson script for download\ndownloading file  [####################################]  100%\ncompleted download of watson script\n\n# using file sharing link\n$ drive clone https://docs.google.com/document/d/1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks\nChoose type to export to\n (ENTER to select, s to stop):\n\n =\u003e pdf\n    txt\n    doc\n    zip\n    html\n    rtf\n    odt\nPreparing: watson script for download\ndownloading file  [####################################]  100%\ncompleted download of watson script\n\n```\n\nfor further in depth documetation checkout our [wiki](https://github.com/nurdtechie98/drive-cli/wiki/How-to-use-%3F).\n\n------------------------------------------\n### Uninstalling\n\n```sh\n    $ pip uninstall drive-cli\n```\n------------------------------------------\n### Contributing\n\n * We're are open to `enhancements` \u0026 `bug-fixes` :smile:. Take a look [here](./Contributing.md) to get started\n * Feel free to add issues and submit patches\n\n------------------------------------------\n### Author\nChirag Shetty - [nurdtechie98](https://github.com/nurdtechie98)\n\nSee also the list of [contributors](https://github.com/nurdtechie98/drive-cli/graphs/contributors) who participated in this project.\n\n------------------------------------------\n### License\nThis project is licensed under the MIT - see the [LICENSE](./LICENSE) file for details.\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurdtechie98%2Fdrive-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurdtechie98%2Fdrive-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurdtechie98%2Fdrive-cli/lists"}