gws-script
What it does
This command helps manage Google Apps Script projects. You can create new projects, view information about them, get or update code, and even see usage metrics.
When to use it
- ✓When you want to create a new script from scratch.
- ✓When you need to see the code of an existing script.
- ✓To check how many people are using your script.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a new script project named 'My First Script'.”
5 new skills a week. 1 minute to read.
How it works
You specify the action you want to perform (like 'create project' or 'view code') and for which project. The tool communicates with Google to get the job done.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
script (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws script <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+push |
Upload local files to an Apps Script project |
API Resources
processes
list— List information about processes made by or on behalf of a user, such as process type and current status.listScriptProcesses— List information about a script's executed processes, such as process type and current status.
projects
create— Creates a new, empty script project with no script files and a base manifest file.get— Gets a script project's metadata.getContent— Gets the content of the script project, including the code source and metadata for each script file.getMetrics— Get metrics data for scripts, such as number of executions and active users.updateContent— Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.deployments— Operations on the 'deployments' resourceversions— Operations on the 'versions' resource
scripts
run—
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws script --help
# Inspect a method's required params, types, and defaults
gws schema script.<resource>.<method>
Use gws schema output to build your --params and --json flags.
FAQ
What is Google Apps Script?
It's a way to create small programs (scripts) that automate tasks within Google Workspace (Gmail, Sheets, Drive, etc.).
What do 'resource' and 'method' mean?
'Resource' is like a type of thing you can manage (e.g., 'projects'). 'Method' is the action you want to perform on that thing (e.g., 'create' or 'get').
What is `gws schema`?
It's a command that shows the specific details needed to use a particular function, like what information you need to provide.
Details
Popularity
- GitHub stars
- 32k
- Ranking position
- #9183
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.