Google Drive: Upload a file with automatic metadata.
a3768d0PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Upload a file with automatic metadata
gws drive +upload <file>
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| <file> | ✓ | — | Path to file to upload |
| --parent | — | — | Parent folder ID |
| --name | — | — | Target filename (defaults to source filename) |
gws drive +upload ./report.pdf
gws drive +upload ./report.pdf --parent FOLDER_ID
gws drive +upload ./data.csv --name 'Sales Data.csv'
[!CAUTION] This is a write command — confirm with the user before executing.
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/gws-drive-upload · pinned to the source commit
git clone https://github.com/googleworkspace/cli.git
cd cli
git checkout a3768d0e82ad83cca2da97724e46bea4ff0e6dbd
mkdir -p ".claude/skills/gws-drive-upload"
cp -r "skills/gws-drive-upload" ".claude/skills/gws-drive-upload"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit a3768d0e82ad. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References parent-directory traversal, which can escape a target directory.
Evidence: ../· fingerprint fa08499e14d0113b