Search code examples
google-apps-scriptclasp

clasp : unknown option creds


enter image description here

I'm trying to run apps script locally using clasp. I'm following https://github.com/google/clasp/blob/master/docs/run.md to get set up . I'm logged in. Foolowing the directions:

$ clasp login
Logging in globally...
� Authorize clasp by visiting this url:
https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.google........

Authorization successful.

Default credentials saved to: ~\.clasprc.json (C:\Users\me\.clasprc.json).


$ clasp open --creds
error: unknown option `--creds'

My project files are on the E drive.


Solution

  • The ability to clasp open --creds was added in commit 0cd4d12. This commit came after the current release of 1.7.0

    If you are not self-compiling clasp, then you do not have this functionality yet. To compile clasp, review the developer guide.