gws-drive-upload
Installation
Summary
Upload files to Google Drive with automatic MIME type detection and metadata.
- Accepts a local file path and uploads it to Google Drive, with optional parent folder targeting and custom filename override
- Automatically detects MIME type based on file extension; filename defaults to source filename unless specified with
--name - Requires Google Workspace authentication via the shared
gwsmodule; treat as a write command and confirm with users before execution
SKILL.md
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) |
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.1Kgws-docs
Read and write Google Docs.
26.0Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.6Kgws-calendar
Google Calendar: Manage calendars and events.
24.6Kgws-docs-write
Google Docs: Append text to a document.
21.8K