Skip to content
Skillpedia
Databases32k · #9161

gws-drive-upload

What it does

This command sends a file from your computer to Google Drive. It also automatically adds information about the file, like its type and name.

When to use it

  • ✓When you want to save an important document to Google Drive.
  • ✓When you need to share a file with others.
  • ✓When you want to organize your files into specific folders on Drive.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-drive-upload/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-drive-upload/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Upload the file 'my_report.docx' to my Google Drive.”

5 new skills a week. 1 minute to read.

How it works

You tell it which file to send and where to put it. The program handles sending and adding the details.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

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
FAQ

How does it know the file type?

It looks at the end of the file name (like .pdf or .docx) to guess the type.

Can I choose a different name for the file on Drive?

Yes, you can specify a new name using the '--name' option.

Can I put the file in a specific folder?

Yes, you can indicate the folder using the '--parent' option and its ID.

Details

Original description by the author

Google Drive: Upload a file with automatic metadata.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#9161
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills