Skip to main content

google-drive

Upload, download, and manage files in Google Drive via the Drive API using curl.

Datos de origen

Repositorio
ThinkfleetAI/thinkfleet-engine
Última actividad en el origen
1 de febrero de 2026 a las 16:21
Idioma detectado de SKILL.md
inglés
Estrellas
0
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
google-drive
description
Upload, download, and manage files in Google Drive via the Drive API using curl.
metadata
{"thinkfleetbot":{"emoji":"📁","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Google Drive File operations via Google Drive API v3. ## Environment Variables - `GOOGLE_ACCESS_TOKEN` - OAuth2 access token with `drive` scope ## List files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?pageSize=10&fields=files(id,name,mimeType,modifiedTime)" \ | jq '.files[]' ``` ## Download a file ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media" -o /tmp/downloaded-file ``` ## Upload a file ```bash curl -s -X POST \ -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ -F "metadata={\"name\":\"myfile.txt\"};type=application/json;charset=UTF-8" \ -F "file=@/tmp/myfile.txt" \ "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart" \ | jq '{id, name}' ``` ## Search files ```bash curl -s -H "Authorization: Bearer $GOOGLE_ACCESS_TOKEN" \ "https://www.googleapis.com/drive/v3/files?q=name%20contains%20'report'&fields=files(id,name)" \ | jq '.files[]' ``` ## Notes - For large files (>5MB), use resumable upload. - Always confirm before deleting files.
Ver en GitHub