gws-apps-script-push
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseapps-script +push
apps-script +push
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
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
标志
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Script Project ID |
| — | — | Directory containing script files (defaults to current dir) |
| 标志 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| ✓ | — | 脚本项目ID |
| — | — | 包含脚本文件的目录(默认值为当前目录) |
Examples
示例
bash
gws script +push --script SCRIPT_ID
gws script +push --script SCRIPT_ID --dir ./srcbash
gws script +push --script SCRIPT_ID
gws script +push --script SCRIPT_ID --dir ./srcTips
提示
- 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项目的命令