gws-script-push

Uploads local script files to a Google Apps Script project via the gws CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill gws-script-push-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-script-push
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/gws-script-push
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill gws-script-push-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping local Google Apps Script source files in sync with a remote Apps Script project normally requires manual copy-paste into the web editor. This Skill pushes an entire local directory of script files to a target Apps Script project in one command. ## Core Features & Use Cases - Bulk File Upload: Pushes .gs, .js, .html, and appsscript.json files from a local directory to a specified Apps Script project ID. - Automatic Filtering: Skips hidden files and node_modules directories during upload. - Full Project Replacement: Replaces all files in the target project, ensuring the remote state matches the local source exactly. - Use Case: A developer maintaining Apps Script code in a local Git repository can run the push command after each commit to deploy the latest version to the script project. ## Quick Start Ask the assistant to push the local script files in the current directory to your Apps Script project by providing the script project ID.

Frequently Asked Questions about gws-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?

Run gws script +push with the --script flag set to your script project ID. The command uploads all supported files from the current directory, or from a directory specified with the --dir flag.

What file types does gws script push support?

The push command supports .gs, .js, .html, and appsscript.json files. Hidden files and node_modules directories are skipped automatically during the upload.

Does gws script push overwrite existing project files?

Yes, the push replaces all files in the target Apps Script project with the local files. Because it is a destructive write operation, you should confirm with the user before executing it.

How do I push Apps Script files from a specific directory?

Pass the --dir flag with the path to your source directory, for example gws script +push --script SCRIPT_ID --dir ./src. Without --dir, the current working directory is used.

What do I need before running gws script push?

You need the gws CLI installed and authenticated, plus the script project ID of the target Apps Script project. Refer to the gws-shared skill for authentication setup and global flags.