Skip to content

Instantly share code, notes, and snippets.

@aculich
Created September 19, 2021 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aculich/2c751c049d5a76b4cc2aab58b9a40906 to your computer and use it in GitHub Desktop.
Save aculich/2c751c049d5a76b4cc2aab58b9a40906 to your computer and use it in GitHub Desktop.

Enable Clasp Run

Prerequisites

To use clasp run, you need to complete 4 steps:

  • Set up a Project ID.
  • Create an OAuth Client ID (Other). Download as creds.json.
  • clasp login --creds creds.json with this downloaded file.
  • Add the following to appsscript.json:
    "executionApi": {
      "access": "ANYONE"
    }

Next Error to resolve

% clasp run testIt Running in dev mode. Error: Permission denied. Be sure that you have:

  • Added the necessary scopes needed for the API.
  • Enabled the Apps Script API.
  • Enable required APIs for project.

Enable the API in the console.cloud.google.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment