Skip to content

stripe cli login with api key is redirecting to the browser #1377

@khanakia

Description

@khanakia

I want to login to stripe cli on Docker without opening Browser as per docs here https://docs.stripe.com/stripe-cli/install

So i am trying to pass api key to login directly but it asking me to open the browser why ?

Issue

➜  nextjs_boiler_drizzle git:(main) ✗ task stripe:setup
task: [stripe:setup] stripe login --api-key sk_test_51SJ6mnAaMSp4r4fcdFuO2udCJmAjUZoH3z3YabncQoyGIwEttDm7uwuTWj6dGt85T1I0e7IJYLlC8WpV7xxxxxxxx
Your pairing code is: polite-trendy-best-clean
This pairing code verifies your authentication with Stripe.
Press Enter to open the browser or visit https://dashboard.stripe.com/stripecli/confirm_auth?t=8jBf1x51VT9OjWFzzMYSmfPdcUa5J63X (^C to quit)stripe --envexceeded max attempts

Expected Behavior

It should not redirect to the browser

Steps to reproduce

stripe login --api-key sk_test_51SJ6mnAaMSp4r4fcdFuO2udCJmAjUZoH3z3YabncQoyGIwEttDm7uwuTWj6dGt85T1I0e7IJYLlC8WpV7xxxxxxxx

Environment

macOs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions