---
id: sm-gws-apps-script-push
name: "gws-apps-script-push"
url: https://skills.yangsir.net/skill/sm-gws-apps-script-push
author: googleworkspace
domain: ai-ci-cd-deployment
tags: ["google-apps-script", "git-integration", "deployment-automation", "ci/cd", "google-workspace"]
install_count: 620
rating: 4.20 (53 reviews)
github: https://github.com/googleworkspace/cli
---

# gws-apps-script-push

> 将本地文件上传到Google Apps Script项目，实现代码部署自动化，遵循共享认证和安全规则。

**Stats**: 620 installs · 4.2/5 (53 reviews)

## Before / After 对比

### Apps Script部署，本地文件自动化

## Readme

# gws-apps-script-push

# apps-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 apps-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](https://github.com/googleworkspace/cli/blob/HEAD/skills/gws-apps-script-push/../gws-shared/SKILL.md) — Global flags and auth

- [gws-apps-script](https://github.com/googleworkspace/cli/blob/HEAD/skills/gws-apps-script-push/../gws-apps-script/SKILL.md) — All manage and execute apps script projects commands

Weekly Installs620Repository[googleworkspace/cli](https://github.com/googleworkspace/cli)GitHub Stars21.4KFirst Seen14 days agoSecurity Audits[Gen Agent Trust HubPass](/googleworkspace/cli/gws-apps-script-push/security/agent-trust-hub)[SocketPass](/googleworkspace/cli/gws-apps-script-push/security/socket)[SnykPass](/googleworkspace/cli/gws-apps-script-push/security/snyk)Installed onopencode604codex604gemini-cli601github-copilot601cursor600kimi-cli599

---
*Source: https://skills.yangsir.net/skill/sm-gws-apps-script-push*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-gws-apps-script-push/markdown*