gws-apps-script-push

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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
前提条件: 阅读
../gws-shared/SKILL.md
了解认证、全局标志和安全规则。如果该文件缺失,请运行
gws generate-skills
来创建它。
将本地文件上传至Apps Script项目

Usage

使用方法

bash
gws apps-script +push --script <ID>
bash
gws apps-script +push --script <ID>

Flags

标志

FlagRequiredDefaultDescription
--script
Script Project ID
--dir
Directory containing script files (defaults to current dir)
标志是否必填默认值描述
--script
脚本项目ID
--dir
包含脚本文件的目录(默认值为当前目录)

Examples

示例

bash
gws script +push --script SCRIPT_ID
gws script +push --script SCRIPT_ID --dir ./src
bash
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.
  • 支持 .gs、.js、.html 和 appsscript.json 文件。
  • 自动跳过隐藏文件和 node_modules。
  • 此操作会替换项目中的所有文件。
[!CAUTION] 这是一个写入命令 — 执行前请与用户确认。

See Also

另请参阅

  • gws-shared — Global flags and auth
  • gws-apps-script — All manage and execute apps script projects commands
  • gws-shared — 全局标志和认证
  • gws-apps-script — 所有管理和执行Apps Script项目的命令