stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.59k stars 372 forks source link

Feature request: Stripe Dashboard URL Compatibility #746

Open mickeyreiss opened 3 years ago

mickeyreiss commented 3 years ago

I often receive Stripe Dashboard URLs via Slack and then inspect the Stripe resource that URL points to.

For example, if someone on my team sends me the link https://dashboard.stripe.com/acct_oijasefoijasef/payments/py_oiasjefoiajsef, I end up typing this in Terminal: stripe charges retrieve --live --stripe-account acct_oijasefoijasef py_oiasjefoiajsef.

This gets the job done, but it requires a bit of repetitive copy-pasting and typing.

It would be more efficient if I could simply open the url directly in the CLI and it understood my intent:

$ stripe https://dashboard.stripe.com/acct_oijasefoijasef/payments/py_oiasjefoiajsef
{
  "id": "py_oiasjefoiajsef"
  // …
}

Thanks!

pepin-stripe commented 2 years ago

Very interesting case and definitely a good idea, thanks for sharing! I'll add that into our internal backlog and hope to be able to fit this at some point!