Langsung ke konten
Skillpedia
Pemrograman umum32k Β· #9183

gws-script

Fungsinya

Perintah ini membantu Anda mengelola project Google Apps Script. Anda bisa membuat project baru, melihat informasinya, mengambil atau memperbarui kode, bahkan melihat metrik penggunaannya.

Kapan dipakai

  • βœ“Saat Anda ingin membuat script baru dari awal.
  • βœ“Saat Anda perlu melihat kode dari script yang sudah ada.
  • βœ“Untuk mengecek berapa banyak orang yang menggunakan script Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/googleworkspace/cli/blob/main/skills/gws-script/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat project script baru bernama 'Script Pertama Saya'.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Anda menentukan aksi yang ingin dilakukan (misalnya 'create project' atau 'view code') dan project yang dituju. Alat ini berkomunikasi dengan Google untuk menjalankan tugas tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa itu Google Apps Script?

Ini adalah cara membuat program kecil (script) untuk mengotomatisasi tugas di dalam Google Workspace (Gmail, Sheets, Drive, dll.).

Apa arti 'resource' dan 'method'?

'Resource' adalah jenis hal yang bisa Anda kelola (misalnya 'projects'). 'Method' adalah aksi yang ingin Anda lakukan pada hal tersebut (misalnya 'create' atau 'get').

Apa itu `gws schema`?

Ini adalah perintah yang menampilkan detail spesifik yang dibutuhkan untuk menggunakan fungsi tertentu, seperti informasi apa saja yang perlu Anda berikan.

Detail

Deskripsi asli dari pembuat

Manage Google Apps Script projects.

repo: googleworkspace/cli

Popularitas

Bintang GitHub
32k
Peringkat
#9183
Lisensi
Apache-2.0
Diperbarui
6/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa