Skip to content
googleworkspace avatar

Gws Script Push

Uploads local Apps Script files to a project, replacing every file in it with the local copy.

CCM score
71 of 100
skills.sh installs
27.6K
GitHub stars
32.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers pushing a local directory of Apps Script sources to a remote project in one command
  • Supports .gs, .js, .html, and appsscript.json files, while skipping hidden files and node_modules
  • Requires a --script project ID and takes an optional --dir flag that defaults to the current directory
  • Replaces all remote files, so it is a write operation that should be confirmed before running

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

FlagRequiredDefaultDescription
--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

Details

Repository
github.com/googleworkspace/cli
Categories
Workflow Automation, Go, Backend & APIs
First seen
Apr 16, 2026

Questions

What does the gws-script-push skill do?

It uploads local files to a Google Apps Script project, sending files such as .gs, .js, .html and appsscript.json. It replaces all files in the target project, so the agent should confirm with the user before running it.

How do I install the gws-script-push skill?

Run npx -y skills add googleworkspace/cli --skill gws-script-push -y in a project. Once installed, the agent can push local Apps Script files to a project by its script ID.

Where does gws-script-push rank in its category?

It sits in the Workflow Automation category and ranks in the top 10 there, alongside skills such as computer-use and gws-events. It is the skill to use when you need to deploy local Apps Script code to a Google Apps Script project.

What does gws-script-push need to run?

It requires the gws command-line tool and an authenticated Google Workspace session, as set up in the gws-shared skill. You also need the Script Project ID, and an optional directory path if your files are not in the current folder.

Which files does gws-script-push skip?

It skips hidden files and node_modules automatically. It accepts .gs, .js, .html and appsscript.json files from the directory you pass with --dir, or from the current directory by default.

More from googleworkspace/cli

All 96

Similar to Gws Script Push

More Workflow Automation