
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.
$ npx -y skills add googleworkspace/cli --skill gws-drive-upload --agent claude-codeInstalls into .claude/skills of the current project.
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
gws drive +upload <file>
| Flag | Required | Default | Description |
|---|---|---|---|
<file> | ✓ | — | Path to file to upload |
--parent | — | — | Parent folder ID |
--name | — | — | Target filename (defaults to source filename) |
gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'
[!CAUTION] This is a write command — confirm with the user before executing.
Sponsors