# Gws Drive Upload > Google Drive: Upload a file with automatic metadata. Source: https://skillsagentes.com/skills/googleworkspace/cli/gws-drive-upload Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 13 tok installed, 326 tok once triggered, 326 tok with every bundled file Bundle: 1 file, 1 KB Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill gws-drive-upload --agent claude-code ``` ## What it does - Sube un archivo local a Google Drive con `gws drive +upload ` - Detecta automáticamente el tipo MIME del archivo - Permite especificar carpeta destino con `--parent` y nombre con `--name` ## Use it when - Cuando se necesita subir un archivo a Google Drive desde la línea de comandos - Cuando se quiere subir a una carpeta específica usando `--parent FOLDER_ID` ## What triggers it - "Sube ./report.pdf a Google Drive" - "Sube ./data.csv a Drive con el nombre 'Sales Data.csv'" - "Sube este archivo a la carpeta FOLDER_ID de Drive" ## Before you install - Requiere el binario `gws` y haber leído gws-shared/SKILL.md para autenticación, flags globales y reglas de seguridad; además es un comando de escritura que debe confirmarse con el usuario antes de ejecutarse. ## Files - SKILL.md — 1 KB ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # 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 ```bash gws drive +upload ``` ## Flags | Flag | Required | Default | Description | |------|----------|---------|-------------| | `` | ✓ | — | Path to file to upload | | `--parent` | — | — | Parent folder ID | | `--name` | — | — | Target filename (defaults to source filename) | ## Examples ```bash 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](../gws-shared/SKILL.md) — Global flags and auth - [gws-drive](../gws-drive/SKILL.md) — All manage files, folders, and shared drives commands --- Skills Agentes — https://skillsagentes.com/skills/googleworkspace/cli/gws-drive-upload