Skip to content

Hard to tell which remote supabase is linked #3910

@dangbert

Description

@dangbert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions