360 Secure SkillHub
360 安全技能中心

gws-script-push

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

分类:开发
googleworkspace
热度 69.20
最近更新 2026-10-18 17:15:17

安装

发给 Agent
帮我安装这个技能: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