Skip to content
Skillpedia
General coding32k · #6280

gws-script-push

Lets your agent upload local files to a Google Apps Script project. Makes it easy to update cloud code.

What it does

This tool sends your code files to a Google Apps Script project. It replaces all existing files in the project.

When to use it

  • ✓When you have a local script project and want to put it on Google.
  • ✓When updating an existing script on Google with your new changes.
  • ✓To back up your local code to a Google project.

Example of what to ask your AI

“Upload my files from my computer to script project with ID 'PROJECT_ID'.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-script-push/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-script-push/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You provide the Google Apps Script project ID and the folder containing your files. The tool then sends all files from that folder to the specified project, overwriting the old ones.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill gws-script-push

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-script-push/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

script +push

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Upload local files to an Apps Script project

Usage

gws script +push --script <ID>

Flags

Flag Required Default Description
--script ✓ — Script Project ID
--dir — — Directory containing script files (defaults to current dir)

Examples

gws script +push --script SCRIPT_ID
gws script +push --script SCRIPT_ID --dir ./src

Tips

  • Supports .gs, .js, .html, and appsscript.json files.
  • Skips hidden files and node_modules automatically.
  • This replaces ALL files in the project.

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

  • gws-shared — Global flags and auth
  • gws-script — All manage google apps script projects commands
FAQ

What file types can I upload?

You can upload files with extensions .gs, .js, .html, and appsscript.json.

What happens to the files already in the project?

All files already existing in the Google Apps Script project will be replaced by the files you are uploading.

Do I need to set anything up beforehand?

Yes, you need to have authentication set up. Refer to the `../gws-shared/SKILL.md` file for more details.

Details

Original description by the author

Google Apps Script: Upload local files to an Apps Script project.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6280
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills