Allow resetting commerce data non-interactively #4115
Replies: 1 comment
-
Thanks for the request, we have added a PR with this feature for the next major release of commerce: #4116 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As part of our review process, we clone our production database, and ideally we want to reset the commerce data for privacy and because we use a Stripe sandbox in our review environments.
Running
./craft commerce/reset-data
interactively will prompt me to confirm. Running it non-interactively (with --iteractive=0 or no tty) will just skip doing anything. This makes it difficult to reset data on CI.Can you add a
--force
flag, which I believe is common for situations like this, that can be used to confirm we want to reset the data non-interactively?My workaround right now is to run
echo 'yes' | ./craft commerce/reset-data
but it feels pretty hacky.Beta Was this translation helpful? Give feedback.
All reactions