360 Secure SkillHub
360 安全技能中心

Gws Script Push

这是gws工具的一项技能,核心功能是将本地文件上传至指定ID的Google Apps Script项目。支持.gs、.js、.html和appsscript.json文件,自动跳过隐藏文件与node_modules;默认上传当前目录文件,可通过--dir指定目录。典型场景为开发者本地编写脚本后批量同步至线上项目,输入为带必填--script项目ID等参数的命令行,执行前需用户确认,输出上传结果。

googleworkspace-bot
googleworkspace-bot
热度 58.13
最近更新 2026-05-11 17:36:59
分类:开发依赖:读写文件 / 第三方 API应用场景:自动化脚本 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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