Labsco
googleworkspace logo

gws-drive-upload

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

Google Drive: Upload a file with automatic metadata.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

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.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Upload a file with automatic metadata

Flags

FlagRequiredDefaultDescription
<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