You should not develop add-ins directly in the document (I made this mistake too). Instead, you need to have an independent script that you bound to the document with parameters to check it as an addon ( this way ). <br> In this case, you can export (and import) your script with Google Drive rest api . According to my information, there are two tools that you can use:
gapps writen in node
python-gas-cli , a python tool (never tested it)
You should also take a look at this post which explains how it works.
source
share