Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Use this skill when the user wants to interact with Google Workspace services (Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, etc.) from the command line. Supports structured JSON output, dry-run previews, and headless CI authentication.

How to use this skill

Skill file

gws Plugin

Official Google Workspace CLI for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service with structured JSON output and headless CI authentication support.

Commands

Authentication

Google Workspace Operations

Utility

Usage Examples

Installation

npm install -g @googleworkspace/cli

Authentication

Interactive (laptop)

gws auth setup    # walks you through Google Cloud project config
gws auth login     # subsequent OAuth login

Headless / CI

Use Service Account credentials or the export flow:

export GWS_CLIENT_ID=...
export GWS_CLIENT_SECRET=...
export GWS_REFRESH_TOKEN=...
gws drive files list --params '{"pageSize": 10}'

Examples

# List Drive files (dry-run to preview)
gws _ _ drive files list --params '{"pageSize": 5}' --dry-run

# List Drive files (execute)
gws _ _ drive files list --params '{"pageSize": 10}'

# Stream paginated results as NDJSON
gws _ _ drive files list --params '{"pageSize": 100}' --page-all | jq -r '.files[].name'

# Create a spreadsheet
gws _ _ sheets spreadsheets create --json '{"properties": {"title": "Q1 Budget"}}'

# Send a Chat message
gws _ _ chat spaces messages create --params '{"parent": "spaces/xyz"}' --json '{"text": "Deploy complete."}' --dry-run

# Get a file's metadata
gws _ _ drive files get --params '{"fileId": "FILE_ID"}'

# List Calendar events
gws _ _ calendar events list --params '{"calendarId": "primary", "maxResults": 10}'

# List Gmail labels
gws _ _ gmail users labels list --params '{"userId": "me"}'

# Admin: list users
gws _ _ admin directory users list --params '{"customer": "my_customer", "maxResults": 10}'

# Introspect any method's request/response schema
gws _ _ schema drive.files.list

Key Features

Authentication Methods

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.