supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.06k stars 207 forks source link

Supabase Destroy Needed #2822

Closed Crisfole closed 3 hours ago

Crisfole commented 3 hours ago

Describe the bug

My coworker just bumped into an issue with his local supabase volumes getting corrupted somehow. In order to solve this we had to stop supabase, manually tear down the docker volumes, and restart to get things working again.

There was no easy way to supabase stop --rm (like a docker compose down --rm). A destructive option for supabase stop would be valuable in these instances.

To Reproduce

Steps to reproduce the behavior:

  1. Deliberately screw up your docker volumes (Exercise left for the reader)
  2. supabase start (get error).
  3. manually destroy the supabase volumes.

Expected behavior

  1. Should be able to supabase stop --rm or similar.

Screenshots

N/A

System information

Irrelevant

Additional context

N/A

avallete commented 3 hours ago

Hi,

It seems like what you're looking for is the --no-backup option detailed here:

https://supabase.com/docs/reference/cli/supabase-stop

Crisfole commented 3 hours ago

Thank you, you're right!