Supabase foundations
Create a local Supabase project
Use the CLI and a Docker-compatible runtime to start a reproducible local stack without experimenting directly in production.
9 minute lesson
Run supabase init to create the project configuration, then supabase start to launch the local services. The generated supabase directory describes configuration, migrations, seeds, and functions.
Commit reproducible configuration and migrations. Keep secrets and CLI temporary state out of Git. The local stack is close to the platform, but official documentation notes that it is not identical in every feature.
Start the stack, open Studio, record the local API URL and keys, then stop and restart it to verify the project state is reproducible.
Start from an empty directory and prove it can be rebuilt:
supabase init
supabase start
supabase status
supabase db reset
Commit configuration, migrations, and intentional seed data. Do not commit generated credentials or temporary container state. Stop the stack, start it again, and run the same reset before depending on dashboard edits that have no migration.
Lesson completed