Provides comprehensive Google Forms management including creating and updating forms, adding all 12 question types, managing sections, retrieving responses, and exporting data to CSV. Optimized for creating feedback and survey forms.
Google Tools CLI
Command-line tool for managing Google Workspace - create forms, add questions, export responses, read spreadsheets.
Features
Full form management - Create, update, delete, duplicate forms
All question types - 12 Google Forms question types supported
Response export - Export responses to CSV
Google Sheets - Read and export spreadsheet data
YAML templates - Create complex forms from simple YAML files
Interactive OAuth wizard - Easy setup for non-technical users
Cursor Skill - Works as an AI agent skill in Cursor IDE
Quick Start
1. Install
2. Setup OAuth
The wizard guides you through:
Creating OAuth credentials in Google Cloud Console
Getting a refresh token
Saving credentials to
.env
3. Use
CLI Structure
Commands
Authentication
Command | Description |
| Interactive OAuth setup |
| Verify credentials |
Form Management
Command | Description |
| List all forms |
| Create new form |
| Get form details |
| Update form |
| Delete form |
| Copy form |
| Get share links |
Questions
Command | Description |
| Add question |
| Remove question |
| Reorder question |
| Add section break |
Responses
Command | Description |
| List responses |
| Export to CSV |
Templates
Command | Description |
| Create from template |
| Export to YAML |
Google Sheets
Command | Description |
| Get spreadsheet metadata |
| List sheets |
| Read data |
Question Types
YAML Templates
Create forms from YAML files:
Apply with:
See templates/examples/ for more examples:
feedback_form.yaml- Employee feedback surveyevent_registration.yaml- Event registration formcustomer_satisfaction.yaml- Customer satisfaction survey
OAuth Setup Details
Prerequisites
Go to Google Cloud Console
Create a new project
Enable Google Forms API, Google Drive API, and Google Sheets API
Create OAuth 2.0 credentials (Desktop application)
Get Refresh Token
Option 1: OAuth Playground (recommended)
Go to OAuth Playground
Click Settings → Check "Use your own OAuth credentials"
Enter your Client ID and Client Secret
Add scopes:
https://www.googleapis.com/auth/forms.bodyhttps://www.googleapis.com/auth/forms.responses.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/spreadsheets.readonly
Authorize and exchange for tokens
Copy the refresh token
Option 2: Interactive wizard
For Cursor/AI Agents
This tool is designed to work as a skill for AI agents in Cursor IDE.
See skill.md for complete agent instructions including:
Quick reference for all commands
Common workflows
Error handling
Project Structure
Backwards Compatibility
The legacy gforms command still works as an alias:
Troubleshooting
OAuth Errors:
API Errors:
Verify Form ID with
uv run gtools forms listCheck API quotas in Google Cloud Console
Security
.envfile is gitignored (never committed)Refresh token provides account access - keep secure
Revoke access: https://myaccount.google.com/permissions
License
MIT