gas-repl
v1.3.3
Published
Remote REPL for Google Apps Script
Downloads
16
Readme
gas-repl - Remote REPL for Google Apps Script (npm)
Interacting with remote objects gets your programming easier.
Installation
npm install --save-dev gas-repl
Prerequisite
Your GAS project should be set up for clasp run
. Follow the instruction below:
- Find Project ID from https://console.cloud.google.com/home/dashboard and Script ID from https://script.google.com/home/my, then paste it into
.clasp.json
. - Open https://console.developers.google.com/apis/credentials, create an OAuth Client ID (Other), then download as
.claspcreds.json
. clasp login --creds .claspcreds.json
.- Put the global function of
gas-repl -p
to your project. - Build your project and
clasp push
. clasp run GAS_REPL
will returnHello from Apps Script ID: ******
if it is working right.
Now you can use gas-repl
to interact with remote objects.
Troubleshooting
If you have Exception: ScriptError Authorization is required to perform that action. []
, try clasp login
.