gws-apps-script-push

Upload local Apps Script files to a Google Apps Script project via gws CLI.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-apps-script-push-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-apps-script-push
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/gws-apps-script-push
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-apps-script-push-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upload local Apps Script files to a Google Apps Script project.

Core Features & Use Cases

  • Uploads .gs, .js, .html, and appsscript.json to a target Apps Script project to sync code from local workspaces.
  • Replaces all files in the project to reflect the local directory state.
  • Skips hidden files and node_modules to avoid accidental uploads.

Quick Start

Push local Apps Script files to your project using gws apps-script +push --script <PROJECT_ID>.

Frequently Asked Questions about gws-apps-script-push

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload local files to a Google Apps Script project?

You can upload local Apps Script files to a Google Apps Script project using the gws apps-script push command, which syncs code from a local directory to the target project. It supports .gs, .js, .html, and appsscript.json files.

What file types are supported when pushing code to an Apps Script project?

When pushing code to an Apps Script project, the supported file types are .gs, .js, .html, and appsscript.json. The upload process automatically skips hidden files and node_modules directories to prevent accidental uploads.

Does the Apps Script upload process replace all existing files in the project?

Yes, the Apps Script upload process replaces all files in the target project to accurately reflect the local directory state. This ensures your Google Apps Script project matches your local workspace exactly during collaborative development workflows.

Can I push local Apps Script files without uploading node_modules and hidden files?

Yes, when you push local Apps Script files, the process automatically excludes hidden files and node_modules directories. This prevents unnecessary or sensitive local development files from being uploaded to your Google Apps Script project.

What is the best way to sync local Apps Script code for collaborative development workflows?

The best way to sync local Apps Script code is using a CLI push command that uploads your local directory contents to the target project. This replaces all remote files, ensuring the Google Apps Script project reflects your local workspace.

Do I need the gws CLI to upload local files to an Apps Script project?

Yes, you need the gws CLI to upload local files to an Apps Script project. The upload process relies on the gws apps-script push command with proper authentication flow to replace all files in the target project.