#!/usr/bin/env bash set -e export DB_URL="postgres://postgres:your-super-secret-and-long-postgres-password@127.0.0.1:5432/postgres" export SUPABASE_ACCESS_TOKEN="your-super-secret-jwt-token-with-at-least-32-characters-long" echo "Press any key to continue..., ctrl-c to cancel" read -n 1 -s # docker compose kill # docker compose down # sleep 1 # sudo mv volumes "volumes.backup.$(date +%Y-%m-%d-%H-%M-%S)" # cp -r ../supabase.fresh/volumes . # docker compose up -d # docker compose logs -f echo "y" | npx supabase db reset --db-url $DB_URL # npx supabase db push --db-url $DB_URL # npx supabase db dump --db-url $DB_URL -f ./dump.sql # npx supabase db diff --db-url $DB_URL # npx supabase db lint --db-url $DB_URL # npx supabase db pull --db-url $DB_URL # npx supabase migration new create_employees_table # npx supabase db start --db-url $DB_URL # npx supabase db push --db-url $DB_URL # npx supabase db pull --db-url $DB_URL # npx supabase db pull --schema auth,storage --db-url $DB_URL # npx supabase db reset --db-url $DB_URL # npx supabase seed # npx supabase storage rm media --experimental