
Gws Drive Upload
A straightforward wrapper around the gws CLI that handles Google Drive uploads with automatic MIME type detection and metadata extraction. You'd reach for this when you need to programmatically upload files to specific Drive folders without manually setting file properties. It covers the common scenarios like preserving original filenames, renaming on upload, and placing files in designated parent folders. The automatic metadata detection saves you from having to specify content types for PDFs, images, or spreadsheets. Clean and focused on the upload task without trying to be a full Drive management suite.
- skills.sh installs
- 50.6K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill gws-drive-upload --agent claude-codeInstalls into .claude/skills of the current project.
Files
drive +upload
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Upload a file with automatic metadata
Usage
gws drive +upload <file>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
<file> | ✓ | — | Path to file to upload |
--parent | — | — | Parent folder ID |
--name | — | — | Target filename (defaults to source filename) |
Examples
gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'
Tips
- MIME type is detected automatically.
- Filename is inferred from the local path unless --name is given.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-drive — All manage files, folders, and shared drives commands
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Gws Calendar Insert49.5K
- Gws Gmail Triage48.2K
- Gws Sheets Append48K
- Gws Tasks46.3K
- Gws Slides42.9K
- Gws Forms42.4K
- Gws Meet42.2K
- Gws Gmail Read42.1K
- Gws Keep39.9K
- Gws Gmail Watch38.1K
- Gws Gmail Reply36K
- Gws Gmail Forward34.5K
- Gws Workflow34.3K
- Gws Chat33.9K
- Gws People33.8K
- Gws Gmail Reply All33.8K
- Gws Workflow Email To Task33.2K
- Recipe Create Presentation33.1K
- Gws Chat Send32.7K
- Gws Workflow Meeting Prep32.6K
- Gws Workflow Weekly Digest32.3K
- Gws Workflow Standup Report32.3K
- Recipe Draft Email From Doc32.3K
- Persona Project Manager32.2K