drive
TLDR
Initialize drive in directory
SYNOPSIS
drive command [options] [path]
DESCRIPTION
drive is a command-line client for Google Drive. It provides a git-like interface for synchronizing files between local directories and Google Drive, with explicit push and pull operations rather than automatic sync.
The tool requires OAuth authentication on first use. Files are tracked in a local context directory, and operations compare local state with remote to determine what needs synchronization.
PARAMETERS
init
Initialize drive context in directory.pull [path]
Download files from Google Drive.push [path]
Upload files to Google Drive.list [path]
List files and directories.diff [path]
Show differences between local and remote.trash [path]
Move files to trash.untrash [path]
Restore files from trash.delete [path]
Permanently delete files.-all
Apply operation to all files.-force
Force operation without confirmation.-no-prompt
Disable confirmation prompts.-depth n
Limit directory traversal depth.
CAVEATS
Requires Go runtime for installation. OAuth tokens are stored locally. Large files may take time to transfer. Conflicts between local and remote changes require manual resolution. Not suitable for real-time sync; use for explicit transfers.
HISTORY
drive was created by Emmanuel Odeke as a command-line alternative to Google's official Drive sync clients. It was designed for users who prefer explicit control over synchronization rather than automatic background sync.


