本文へスキップ
Skillpedia
一般的なプログラミング32k · #9183

gws-script

できること

このコマンドは、Google Apps Scriptプロジェクトの管理に役立ちます。新しいプロジェクトの作成、プロジェクトに関する情報の表示、コードの取得や更新、利用状況の確認ができます。

使う場面

  • ✓ゼロから新しいスクリプトを作成したいとき。
  • ✓既存のスクリプトのコードを確認する必要があるとき。
  • ✓スクリプトを何人が使っているか確認したいとき。

スキルのリンク

https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“「My First Script」という名前の新しいスクリプトプロジェクトを作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

実行したい操作(「create project」や「view code」など)と、対象のプロジェクトを指定します。ツールはGoogleと通信して、作業を実行します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

script (v1)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws script <resource> <method> [flags]

Helper Commands

Command Description
+push Upload local files to an Apps Script project

API Resources

processes

  • list — List information about processes made by or on behalf of a user, such as process type and current status.
  • listScriptProcesses — List information about a script's executed processes, such as process type and current status.

projects

  • create — Creates a new, empty script project with no script files and a base manifest file.
  • get — Gets a script project's metadata.
  • getContent — Gets the content of the script project, including the code source and metadata for each script file.
  • getMetrics — Get metrics data for scripts, such as number of executions and active users.
  • updateContent — 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.
  • deployments — Operations on the 'deployments' resource
  • versions — Operations on the 'versions' resource

scripts

  • run —

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws script --help

# Inspect a method's required params, types, and defaults
gws schema script.<resource>.<method>

Use gws schema output to build your --params and --json flags.

よくある質問

Google Apps Scriptとは何ですか?

Google Workspace(Gmail、Sheets、Driveなど)の中で作業を自動化する、小さなプログラム(スクリプト)を作成するための仕組みです。

「resource」と「method」とはどういう意味ですか?

「resource」は、管理できるものの種類を指します(例:「projects」)。「method」は、そのものに対して行う操作を指します(例:「create」や「get」)。

`gws schema` とは何ですか?

特定の機能を使うために必要な詳細、たとえばどんな情報を指定する必要があるかを表示するコマンドです。

詳細

作者による元の説明

Manage Google Apps Script projects.

repo: googleworkspace/cli

人気

GitHubのスター
32k
ランキング
#9183
ライセンス
Apache-2.0
更新日
2026/10/6

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル