# Install gdrive with Homebrew, MacPorts, Nix, scoop

Google Drive CLI Client. Version 3.9.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:gdrive
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gdrive
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdrive
```

  Evidence: MacPorts ports tree: net/gdrive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gdrive
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gd/gdrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/gdrive
```

  Evidence: Scoop official bucket manifest trees: bucket/gdrive.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:gdrive
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gdrive>
- **Version:** 3.9.1
- **Source summary:** Google Drive CLI Client
- **Homepage:** <https://github.com/glotlabs/gdrive>
- **Repository:** <https://github.com/glotlabs/gdrive>
- **Upstream docs:** <https://github.com/glotlabs/gdrive#readme>
- **License:** MIT
- **Source archive:** <https://github.com/glotlabs/gdrive/archive/refs/tags/3.9.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gdrive (cli)
- gdrive (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.9.1
- Local data: ok
- Upstream repository: https://github.com/glotlabs/gdrive
- Upstream latest detected: 3.9.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

gdrive is a command-line Google Drive client from glotlabs, written as the successor to the older prasmussen/gdrive project and aimed at authenticated Drive account operations.

### Project history

The glotlabs/gdrive repository was created in late 2022. Its README identifies the project as the successor of gdrive2, the archived prasmussen/gdrive repository, while noting that the new client initially implemented only the most basic functionality.

The project kept the familiar gdrive command name but restarted the implementation around a new account flow and documentation set. It requires users to create Google OAuth client credentials, then run gdrive account add to authorize access through a local callback server.

### Adoption history

The predecessor prasmussen/gdrive repository dates to 2013 and became a widely starred Google Drive CLI before archival. The glotlabs successor began publishing 3.x releases in 2023 and appears in Homebrew, MacPorts, Nix, and Scoop according to the input package-manager facts.

### How it is used

Users configure Google API credentials, add an account with gdrive account add, and then use the CLI for Google Drive operations. The official README also documents exporting and importing account data for remote servers where browser access to localhost is awkward.

### Why package nerds care

For package maintainers, this formula is significant because the old gdrive name did not simply disappear: it moved from a popular archived Go CLI to a successor project with a new credential directory, OAuth setup, and package-manager continuity under the same command-line identity.

### Timeline

- 2013: prasmussen/gdrive repository created.
- 2022: glotlabs/gdrive successor repository created.
- 2023: 3.x release series published.
- 2024: v3.9.1 published.

### Related projects

- The closest related project is prasmussen/gdrive, called gdrive2 by the successor README. gdown and gdrive-downloader cover narrower public-file download workflows, while glotlabs/gdrive targets authenticated Drive client operations.

### Sources

- <https://github.com/glotlabs/gdrive>
- <https://github.com/glotlabs/gdrive#readme>
- <https://github.com/glotlabs/gdrive/releases>
- <https://github.com/glotlabs/gdrive/tree/main/docs>
- <https://github.com/prasmussen/gdrive>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.config/gdrive3/
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gdrive
- **Aliases:** gdrive@3
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - gdrive: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gdrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - gdrive: normalized package name match | MacPorts ports tree: net/gdrive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/gdrive: normalized package name match | Scoop official bucket manifest trees: bucket/gdrive.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [megacmd](https://www.automicvault.com/pkg/brew/megacmd/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [megatools](https://www.automicvault.com/pkg/brew/megatools/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [cookcli](https://www.automicvault.com/pkg/brew/cookcli/) - Shares av.db curated category or tags: cli, productivity.
- [aliyunpan](https://www.automicvault.com/pkg/brew/aliyunpan/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [amp](https://www.automicvault.com/pkg/brew/amp/) - Shares av.db curated category or tags: cli, productivity, rust.
- [clock-rs](https://www.automicvault.com/pkg/brew/clock-rs/) - Shares av.db curated category or tags: cli, productivity, rust.
- [cloudpan189-go](https://www.automicvault.com/pkg/brew/cloudpan189-go/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [ekphos](https://www.automicvault.com/pkg/brew/ekphos/) - Shares av.db curated category or tags: cli, productivity, rust.

## Combined YAML source

View the package source record on GitHub. [combined/gdrive.yml](https://github.com/automic-vault/db/blob/main/combined/gdrive.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
