← 返回
未分类 Key 中文

drivectl - your command-line tool for interacting with Google Drive

Interact with Google Drive, Docs, and Sheets using the drivectl CLI. Use this skill when asked to list Drive files, download files, read/update Sheets, or cr...
使用 drivectl CLI 与 Google Drive、Docs、Sheets 交互。适用于列出 Drive 文件、下载文件、读取/更新 Sheets,或创建...时。
ghchinoy ghchinoy 来源
未分类 clawhub v0.1.4 1 版本 100000 Key: 需要
★ 1
Stars
📥 359
下载
💾 0
安装
1
版本
#latest

概述

google-drive-cli

This skill provides guidance on using the drivectl command-line tool to interact with Google Workspace (Drive, Docs, Sheets).

Prerequisites & Authentication

  • Ensure drivectl is available in your PATH or in the current working directory (e.g., ./drivectl).

If it is not installed, you can quickly download the latest prebuilt binary by running the bundled script: scripts/install.sh.

  • Crucial Rule: Always append -O json to drivectl commands when you need to parse the output programmatically or return structured information.

First-time Authentication

The user must authenticate before using drivectl. It securely caches tokens locally so this only needs to happen once. If the user hasn't authenticated, guide them to do so:

drivectl auth login --secret-file /path/to/your/client_secret.json

(If operating on a headless system or inside an agent environment without a browser, append the --no-browser-auth flag to print a manual authorization URL that the user can click).

Available Modules

The drivectl tool provides several subcommands organized by Workspace service. Pick the correct reference depending on the user's request.

  • Google Drive (Files/Folders): See references/drive.md for listing, querying, searching, and downloading files.
  • Google Docs: See references/docs.md for creating docs from Markdown, reading docs, converting to Markdown, and exploring tab structures.
  • Google Sheets: See references/sheets.md for reading ranges, updating cells, and exporting sheets to CSV.

Dynamic Discovery (Fallback)

If the built-in commands (list, docs, sheets) do not cover the requirement, you can use the call subcommand to dynamically invoke any Google Workspace API endpoint using Google Discovery.

See references/discovery.md for detailed instructions on how to formulate and execute these dynamic API calls.

版本历史

共 1 个版本

  • v0.1.4 当前
    2026-05-07 21:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 937 📥 187,623
office-efficiency

腾讯文档 TENCENT DOCS

u_b0de8114
腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill
★ 177 📥 120,572
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 474 📥 157,037