Error: The 'login' command requires an interactive shell #44
-
Hi, There is a way to login without interactive shell? steps to reproduce:
any help are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Howdy @irvile, You can use service tokens to avoid having to run auth login interactively. You will need create these from pscale CLI so you will have to interactively authenticate initially. The following doc utilizes the service_token You can pass the --service-token-name --service-token at the end of most pscale commands to auth without doing auth login. There is also some more discussion around headless pscale here; |
Beta Was this translation helpful? Give feedback.
Howdy @irvile,
You can use service tokens to avoid having to run auth login interactively. You will need create these from pscale CLI so you will have to interactively authenticate initially.
The following doc utilizes the service_token
https://planetscale.com/docs/tutorials/connect-any-application
You can pass the --service-token-name --service-token at the end of most pscale commands to auth without doing auth login.
There is also some more discussion around headless pscale here;
#11