Skip to main content

google-drive

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

소스 정보

저장소
ThinkfleetAI/thinkfleet-engine
최근 소스 활동
2026년 2월 1일 16:21
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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.
GitHub에서 보기