gws-drive-upload
Upload files to Google Drive, automatically handling file metadata to simplify file management.
npx skills add googleworkspace/cli --skill gws-drive-uploadBefore / After Comparison
1 组Manually uploading files to Google Drive is time-consuming and laborious. File metadata needs to be filled in one by one, which is prone to errors. Disorganized file management makes tracking and retrieval difficult, severely impacting work efficiency and data accuracy.
Automating file uploads to Google Drive allows the system to automatically process file metadata, enabling efficient file classification, retrieval, and management. This significantly boosts file processing efficiency, reduces manual operational errors, and ensures data consistency.
description 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) |
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
forumUser Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill