360 Secure SkillHub
360 安全技能中心

gws-script-push

通过 gws script +push 命令把本地目录中的 .gs、.js、.html 与 appsscript.json 文件上传并替换 Google Apps Script 项目中的全部文件,支持通过参数指定目标项目与目录,自动跳过隐藏文件和 node_modules,属于写入型操作。

googleworkspace
热度 58.10
最近更新 2026-10-18 17:15:17
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add googleworkspace/cli/gws-script-push
Metadata
name
gws-script-push
description
Google Apps Script: Upload local files to an Apps Script project.
metadata
{"version":"0.22.5","openclaw":{"category":"productivity","requires":{"bins":["gws"]},"cliHelp":"gws script +push --help"}}

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 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 — Global flags and auth
  • gws-script — All manage google apps script projects commands