Skip to content

Error: The 'login' command requires an interactive shell #44

Answered by Anders-PlanetScale
irvile asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@irvile
Comment options

@default-student
Comment options

Answer selected by Anders-PlanetScale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants