cli
cli copied to clipboard
Login flow of `auth login` using `REPLICATE_API_TOKEN`
AFAIK, there is no other method available aside from passing the token via stdin like following.
echo $REPLICATE_API_TOKEN | replicate auth login --token-stdin
I'm curious about why the token isn't an argument of the login command. Are there any other factors besides security considerations like exposing it in logs?
Alternatively, CLI could access $REPLICATE_API_TOKEN environment variable and extract the token automatically without requiring any explicit argument. This approach provides a more secure and seamless authentication process for users.