gws-script-push

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

script +push

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 script +push --script <ID>
bash
gws 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-script — All manage google apps script projects commands
  • gws-shared — 全局标志和认证
  • gws-script — 所有Google Apps Script项目管理命令