Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

Logging into cli without browser does not work #561

Open ejoebstl opened 6 years ago

ejoebstl commented 6 years ago

To authenticate with the graphcool cli without a browser, using the following command, does not work:

graphcool login --token $MY_TOKEN

Expected behavior: Should sign me in.

Actual behavior: Still opens the browser for authenticating the CLI. Crashes on remote machine via SSH.

contesini commented 6 years ago

In your home directory exist a file .graphcoolrc with you authentication info, if you need browserless authentication, you can use this file for authentication without browser login. Just copy .graphcoolrc to the home directory of your remote machine scp ~/.graphcoolrc user@domain:~/.graphcoolrc