-
Notifications
You must be signed in to change notification settings - Fork 270
Description
Is your feature request related to a problem? Please describe.
When I run npx supabase db reset --linked
I want to be sure I'm currently linked to my staging instance and not production. Otherwise I risk accidentally torching the wrong database.
Describe the solution you'd like
Add the command supabase db info --linked
which prints the currently linked instance's URL and name.
Describe alternatives you've considered
I've used npx supabase link
to relink the project (but for example I have 3 projects show up when I run that so just running that and aborting doesn't give me confidence in an answer).
I've also used npx supabase db push --linked
to differentiate staging from production (when I expect a difference in which migrations have run on my instances).
Additional context
Maybe npx supabase db reset --linked
should print the remote databases URL or name instead of just saying "Do you want to reset the remote database? [y/N]"
And ditto for npx supabase db push --linked