user1592380
user1592380

Reputation: 36347

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.

Upvotes: 0

Views: 498

Answers (2)

alainschaller
alainschaller

Reputation: 113

If you are to lazy to clone the clasp project, build it to finally use the --creds option, you can just open the url:

https://console.developers.google.com/apis/credentials?project=...

with the parameter project with a value like: project-id-7006438181792679938

Upvotes: 2

tehhowch
tehhowch

Reputation: 9872

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.

Upvotes: 1

Related Questions