gws-drive-upload

Upload local files to Google Drive with automatic MIME type detection and metadata.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill gws-drive-upload-oresttokovenko
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gws-drive-upload
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/gws-drive-upload
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill gws-drive-upload-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually uploading files to Google Drive through the web interface interrupts command-line workflows and requires repetitive clicks. This Skill uploads files directly from the terminal with automatic metadata handling. ## Core Features & Use Cases - Direct File Upload: Upload any local file to Google Drive using the gws CLI with a single command. - Automatic Metadata: MIME type is detected automatically and the filename is inferred from the local path unless overridden. - Folder Targeting: Place uploads into a specific Drive folder using the --parent flag with a folder ID. - Use Case: After generating a sales report locally, upload report.pdf directly into the shared team Drive folder and rename it to 'Sales Data.csv' without opening a browser. ## Quick Start Ask the assistant to upload a local file such as ./report.pdf to Google Drive, optionally specifying a parent folder ID or a custom target filename.

Frequently Asked Questions about gws-drive-upload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a file to Google Drive from the command line?▼

Run gws drive +upload followed by the local file path, for example gws drive +upload ./report.pdf. The gws CLI detects the MIME type automatically and uses the source filename by default.

How do I upload a file to a specific Google Drive folder?▼

Pass the target folder's ID with the --parent flag, such as gws drive +upload ./report.pdf --parent FOLDER_ID. You can find folder IDs in the Drive URL or via gws drive listing commands.

Can I rename a file when uploading it to Google Drive?▼

Yes, use the --name flag to set a different target filename, for example gws drive +upload ./data.csv --name 'Sales Data.csv'. Without this flag, the upload keeps the local filename.

Does gws drive upload detect the file MIME type automatically?▼

Yes, the MIME type is detected automatically during upload, so you do not need to specify the content type manually. The filename is also inferred from the local path unless --name is provided.

Why does gws drive +upload fail with authentication errors?▼

Upload failures usually mean the gws CLI is not authenticated or the shared skill configuration is missing. Read the gws-shared skill for auth setup, or run gws generate-skills to recreate it if missing.