google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

How to run clasp push with local .clasprc.json #861

Closed ZouYouShun closed 3 years ago

ZouYouShun commented 3 years ago

Expected Behavior

clasp push --local

that should be use the local.clasprc file.

Actual Behavior

Don't have this config

Steps to Reproduce the Problem

Is there any way to use local .claprc file?

Specifications

sqrrrl commented 3 years ago

Currently local credentials are only used for clasp run. push uses the global credentials by default. You can, however, override the path of the global auth file with the env var clasp_config_auth