gws-apps-script
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseapps-script (v1)
apps-script (v1)
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
bash
gws apps-script <resource> <method> [flags]前置要求: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
bash
gws apps-script <resource> <method> [flags]Helper Commands
辅助命令
| Command | Description |
|---|---|
| Upload local files to an Apps Script project |
| 命令 | 描述 |
|---|---|
| 将本地文件上传到Apps Script项目 |
API Resources
API资源
processes
进程
- — List information about processes made by or on behalf of a user, such as process type and current status.
list- — List information about a script's executed processes, such as process type and current status.
listScriptProcesses
- — 列出由用户发起或代表用户执行的进程信息,例如进程类型和当前状态。
list- — 列出脚本已执行进程的信息,例如进程类型和当前状态。
listScriptProcesses
projects
项目
- — Creates a new, empty script project with no script files and a base manifest file.
create- — Gets a script project's metadata.
get - — Gets the content of the script project, including the code source and metadata for each script file.
getContent - — Get metrics data for scripts, such as number of executions and active users.
getMetrics - — Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
updateContent - — Operations on the 'deployments' resource
deployments - — Operations on the 'versions' resource
versions
- — 创建一个新的空脚本项目,不包含脚本文件,仅带有基础清单文件。
create- — 获取脚本项目的元数据。
get - — 获取脚本项目的内容,包括每个脚本文件的源代码和元数据。
getContent - — 获取脚本的指标数据,例如执行次数和活跃用户数。
getMetrics - — 更新指定脚本项目的内容。此内容将存储为HEAD版本,当脚本作为触发器、在脚本编辑器中、在插件预览模式下,或作为开发模式下的Web应用或Apps Script API执行时,会使用该版本。此操作会清除项目中所有现有文件。
updateContent - — 对'deployments'资源的操作
deployments - — 对'versions'资源的操作
versions
scripts
脚本
- —
run
- —
run
Discovering Commands
命令探索
Before calling any API method, inspect it:
bash
undefined在调用任何API方法之前,请先查看其详情:
bash
undefinedBrowse resources and methods
浏览资源和方法
gws apps-script --help
gws apps-script --help
Inspect a method's required params, types, and defaults
查看方法的必填参数、类型和默认值
gws schema apps-script.<resource>.<method>
Use `gws schema` output to build your `--params` and `--json` flags.gws schema apps-script.<resource>.<method>
使用`gws schema`的输出来构建你的`--params`和`--json`标志。