googGitHub

Find Drive folders by name

Find a folder on any shared drive without knowing its ID, and walk up from any file to its shared drive root.

v0.2.14
zsh
~/work $
My Drive - Drive
drive.google.com/drive/my-drive
A
My Drive
NameModified
Q4 PlanningNov 27
Board updateNov 26
Team budgetNov 20

Search by name

drive ls --name keeps items whose name contains the text. Without --folder it searches My Drive, shared drives and items shared with you.

$goog drive ls --name "Contracts" --type folders

List shared drives

drive drives lists every shared drive you belong to. A shared drive ID works as a --folder ID.

$goog drive drives
$goog drive ls --folder SHARED_DRIVE_ID

Inspect any item

drive info shows the name, type, parent folder IDs, shared drive ID and link, with the same account fallback as other single-file commands.

$goog drive info FILE_ID
Downloads and checksums on GitHub