
gws-drive-upload
โ Officialโ 29,425by Google ยท part of googleworkspace/cli
Google Drive: Upload a file with automatic metadata.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
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
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
npx skills add googleworkspace/cli --skill "gws-drive-upload" --full-depthRun this in your project โ your agent picks the skill up automatically.
Usage
gws drive +upload <file>No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under Apache-2.0โ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ