Skip to content

clasp login --creds fails #656

@brettcarroll

Description

@brettcarroll

Please search existing issues before creating a new one.

DON'T DELETE THIS! FILL THESE SECTIONS OUT!

Expected Behavior

Expecting local credentials to be saved within the project folder when using flag. Saving credentials within the project folder (very useful for switching different profiles) use to be accomplished using the --ownkey flag. Now it seems that the --creds flag is used.

Actual Behavior

When running the login with the --creds flag a "no such file" error is produced (see below) and no .clasprc.json file is saved in the directory.

Using the creds flag is mentioned in #42 as work around 1 but fails. Work around 2 of coping the cred file works but is difficult when using many different profiles and not as smooth as the creds file that was saved with --ownkey.

Steps to Reproduce the Problem

clasp login --creds creds.json
	Logging in locally...

	Authorizing with the following scopes:
	https://www.googleapis.com/auth/script.webapp.deploy

	NOTE: The full list of scopes your project may need can be found at script.google.com under:
	File > Project Properties > Scopes

	ENOENT: no such file or directory, open 'creds.json'

Specifications

  • Node version (node -v):10.16.0
  • Version (clasp -v):2.1.0
  • OS (Mac/Linux/Windows): Windows 10 64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions