recipe-deploy-apps-script
Pushes local files to a Google Apps Script project, automating Apps Script code deployment.
npx skills add https://github.com/googleworkspace/cli --skill recipe-deploy-apps-scriptBefore / After Comparison
1 组Manually deploying local files to Google Apps Script projects is time-consuming and error-prone, resulting in low deployment efficiency and making continuous integration difficult to achieve.
Automating the push of local files to Apps Script projects enables rapid code deployment, significantly boosting development efficiency and deployment reliability.
recipe-deploy-apps-script
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"}'
Weekly Installs596Repositorygoogleworkspace/cliGitHub Stars21.4KFirst Seen14 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex580opencode579gemini-cli577github-copilot577cursor577kimi-cli576
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill