recipe-deploy-apps-script
Installation
Summary
Deploy local files to Google Apps Script projects with version control.
- Requires the
gws-apps-scriptskill andgwscommand-line tool as prerequisites - Supports listing projects, retrieving project content, updating files, and creating versioned releases
- Workflow covers four core operations: project discovery, content inspection, file updates, and version creation
SKILL.md
Deploy an Apps Script Project
PREREQUISITE: Load the following skills to execute this recipe:
gws-apps-script
Push local files to a Google Apps Script project.
Steps
- List existing projects:
gws apps-script projects list --format table - Get project content:
gws apps-script projects getContent --params '{"scriptId": "SCRIPT_ID"}' - Update content:
gws apps-script projects updateContent --params '{"scriptId": "SCRIPT_ID"}' --json '{"files": [{"name": "Code", "type": "SERVER_JS", "source": "function main() { ... }"}]}' - Create a new version:
gws apps-script projects versions create --params '{"scriptId": "SCRIPT_ID"}' --json '{"description": "v2 release"}'
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.1Kgws-docs
Read and write Google Docs.
26.0Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.6Kgws-calendar
Google Calendar: Manage calendars and events.
24.6Kgws-docs-write
Google Docs: Append text to a document.
21.8K