$npx -y skills add googleworkspace/cli --skill gws-script-pushGoogle Apps Script: Upload local files to an Apps Script project.
| 1 | # script +push |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | Upload local files to an Apps Script project |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | ```bash |
| 10 | gws script +push --script <ID> |
| 11 | ``` |
| 12 | |
| 13 | ## Flags |
| 14 | |
| 15 | | Flag | Required | Default | Description | |
| 16 | |------|----------|---------|-------------| |
| 17 | | `--script` | ✓ | — | Script Project ID | |
| 18 | | `--dir` | — | — | Directory containing script files (defaults to current dir) | |
| 19 | |
| 20 | ## Examples |
| 21 | |
| 22 | ```bash |
| 23 | gws script +push --script SCRIPT_ID |
| 24 | gws script +push --script SCRIPT_ID --dir ./src |
| 25 | ``` |
| 26 | |
| 27 | ## Tips |
| 28 | |
| 29 | - Supports .gs, .js, .html, and appsscript.json files. |
| 30 | - Skips hidden files and node_modules automatically. |
| 31 | - This replaces ALL files in the project. |
| 32 | |
| 33 | > [!CAUTION] |
| 34 | > This is a **write** command — confirm with the user before executing. |
| 35 | |
| 36 | ## See Also |
| 37 | |
| 38 | - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth |
| 39 | - [gws-script](../gws-script/SKILL.md) — All manage google apps script projects commands |