#DizzyDizz-cli
1 messages · Page 1 of 1 (latest)
I tried with stripe login --api-key and entered the production key, but it still takes only the test data
Hello. How did you authenticate? Via Dashboard or are you using the --api-key flag? https://stripe.com/docs/cli/flags#flags-api_key
used the --api-key with production id flag
Sorry missed your 2nd message
Can you share the command you're using which isn't working as you'd expect
stripe login --api-key "MY_ProductionKEy"
CLI uses test data by default regardless of API key I think. You might need to pass a flag depending on the actual command
Sorry I mean the command that is still using test data
Ok thank you i dont really get it at the moment but i will look into it again
but it still takes only the test data
What did you mean by this?
Yep, use the --live flag
stripe customers list --live
CLI defaults to test data, but that flag is available on some (most?) commands
It's not very well documented, just that callout which you can easily miss
✌️