Chuyển đến nội dung
Skillpedia
Lập trình chung32k · #9183

gws-script

Skill này làm gì

Lệnh này giúp quản lý các dự án Google Apps Script. Bạn có thể tạo dự án mới, xem thông tin về chúng, lấy hoặc cập nhật mã, và thậm chí xem số liệu sử dụng.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một script mới từ đầu.
  • ✓Khi bạn cần xem mã của một script đã có.
  • ✓Khi bạn muốn kiểm tra có bao nhiêu người đang dùng script của mình.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một dự án script mới tên 'My First Script'.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn chỉ định thao tác muốn thực hiện (như 'create project' hoặc 'view code') và dự án nào. Công cụ giao tiếp với Google để hoàn thành công việc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Google Apps Script là gì?

Đó là cách tạo các chương trình nhỏ (script) để tự động hóa tác vụ trong Google Workspace (Gmail, Sheets, Drive, v.v.).

'Resource' và 'method' nghĩa là gì?

'Resource' giống như một loại đối tượng bạn có thể quản lý (ví dụ 'projects'). 'Method' là hành động bạn muốn thực hiện trên đối tượng đó (ví dụ 'create' hoặc 'get').

`gws schema` là gì?

Đó là lệnh hiển thị các chi tiết cụ thể cần thiết để dùng một chức năng nhất định, chẳng hạn bạn cần cung cấp thông tin gì.

Chi tiết

Mô tả gốc của tác giả

Manage Google Apps Script projects.

repo: googleworkspace/cli

Độ phổ biến

Sao GitHub
32k
Vị trí xếp hạng
#9183
Giấy phép
Apache-2.0
Cập nhật
6/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự