---
id: sm-recipe-deploy-apps-script
name: "recipe-deploy-apps-script"
url: https://skills.yangsir.net/skill/sm-recipe-deploy-apps-script
author: googleworkspace
domain: ai-ci-cd-deployment
tags: ["google-apps-script-deployment", "ci/cd", "automation", "google-workspace", "cloud-scripting"]
install_count: 596
rating: 4.20 (44 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-deploy-apps-script

> 将本地文件推送到Google Apps Script项目，实现Apps Script代码的部署自动化。

**Stats**: 596 installs · 4.2/5 (44 reviews)

## Before / After 对比

### Apps Script代码部署，自动化提速

## Readme

# recipe-deploy-apps-script

# Deploy an Apps Script Project

**PREREQUISITE:** Load the following skills to execute this recipe: `gws-apps-script`

Push local files to a Google Apps Script project.

## Steps

- List existing projects: `gws apps-script projects list --format table`

- Get project content: `gws apps-script projects getContent --params '{"scriptId": "SCRIPT_ID"}'`

- Update content: `gws apps-script projects updateContent --params '{"scriptId": "SCRIPT_ID"}' --json '{"files": [{"name": "Code", "type": "SERVER_JS", "source": "function main() { ... }"}]}'`

- Create a new version: `gws apps-script projects versions create --params '{"scriptId": "SCRIPT_ID"}' --json '{"description": "v2 release"}'`

Weekly Installs596Repository[googleworkspace/cli](https://github.com/googleworkspace/cli)GitHub Stars21.4KFirst Seen14 days agoSecurity Audits[Gen Agent Trust HubPass](/googleworkspace/cli/recipe-deploy-apps-script/security/agent-trust-hub)[SocketPass](/googleworkspace/cli/recipe-deploy-apps-script/security/socket)[SnykPass](/googleworkspace/cli/recipe-deploy-apps-script/security/snyk)Installed oncodex580opencode579gemini-cli577github-copilot577cursor577kimi-cli576

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