Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown command "preview" for "stripe" #1239

Open
Aleksandern opened this issue Sep 9, 2024 · 2 comments
Open

Unknown command "preview" for "stripe" #1239

Aleksandern opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Aleksandern
Copy link

Issue

stripe preview whoami command doesn't work as described in the doc. I get error

Unknown command "preview" for "stripe". Did you mean "reviews"?
If not, see "stripe --help" for a list of available commands.

Expected Behavior

Display the sandbox i'm currently using.

Steps to reproduce

run the following command in the CLI:

  • brew install stripe/stripe-cli/stripe
  • stripe login
  • stripe listen --forward-to localhost:3333/api/ (webhook is visible)
  • stripe preview whoami

Environment

  • macOS
  • stripe version 1.21.5
@Aleksandern Aleksandern added the bug Something isn't working label Sep 9, 2024
@jamespierce-rg
Copy link

This isn't immediately apparent from the documentation (they should probably call it out in the sandbox docs)

You need to install the Stripe CLI preview plugin

https://docs.stripe.com/cli-preview-plugin

@shane-streettext
Copy link

shane-streettext commented Jan 14, 2025

It also seems as though the preview plugin can only be installed on macOS, is that correct?

Given the CLI runs on multiple platforms, this seems an odd (and, to be frank, unhelpful) limitation. The Docker image also looks like it has the same limitation, making this feature a bit challenging to develop with. ☹️

Any plans to enable the feature for other platforms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants