I have a script running on a spreadsheet and was hoping to be able to push updates to that script with my continuous integration server. Is there currently an API for updating scripts programmatically?
3 Answers
No you cant update scripts inside spreadsheets. However if you make it a standalone script, you can update it with drive api (google it). If the script must for some reason be contained in the spreadsheet, then make that script a simple wrapper to the real script in a standalone library. Include the lib in 'development mode' and the spreadsheet will always use the latest library code.
2 Comments
The new Google add-ons for Google Sheets & Docs allow you to automatically update your scripts (add-ons, as they are now called).
2 Comments
From the question
Is there currently an API for updating scripts programmatically?
Yes, there is -> Google Apps Script API.
It worth to mention there is an open-source project managed by Google based on the API to use a terminal -> CLASP.