bootstrap for scratch is failed
Describe the bug
Creating scratch project by supabase bootstrap command is failed.
To Reproduce Steps to reproduce the behavior:
- Execute
npx supabase bootstrap - Select
scratch
I showed executed command and result in Screenshots section.
Expected behavior Scratch project is generated.
Screenshots
$ npx supabase bootstrap --debug
Supabase CLI 2.24.3
Enter a directory to bootstrap your project (or leave blank to use /Users/yyh-gl/workspaces/temp): debug
2025/06/04 20:53:28 HTTP GET: https://api.github.com/repos/supabase-community/supabase-samples/contents/samples.json?ref=main
Using workdir debug
Generate VS Code settings for Deno? [y/N] y
Generated VS Code settings in .vscode/settings.json. Please install the recommended extension!
Creating project: debug
2025/06/04 20:53:38 HTTP GET: https://api.supabase.com/v1/organizations
Selected org-id: <org-id>
Selected region: ap-southeast-1
Enter your database password (or leave blank to generate one):
2025/06/04 20:53:42 HTTP POST: https://api.supabase.com/v1/projects
Unexpected error creating project: {"message":"template_url: Invalid url"}
System information
Rerun the failing command with --create-ticket flag.
- Ticket ID: 637553f648184e469af931aa01f17439
- Version of OS: macOS Sequoia 15.5(24F74)
- Version of CLI: v2.24.3
- Version of Docker: 28.1.1
- Versions of services:
SERVICE IMAGE | LOCAL | LINKED ------------------------|------------------|-------- supabase/postgres | 15.8.1.060 | - supabase/gotrue | v2.170.0 | - postgrest/postgrest | v12.2.8 | - supabase/realtime | v2.34.45 | - supabase/storage-api | v1.19.3 | - supabase/edge-runtime | v1.67.4 | - supabase/studio | 20250317-6955350 | - supabase/postgres-meta | v0.88.2 | - supabase/logflare | 1.12.0 | - supabase/supavisor | 2.4.14 | -
Additional context If applicable, add any other context about the problem here.
- Browser [e.g. chrome, safari]: -
- Version of supabase-js [e.g. v2.22.0]: -
- Version of Node.js [e.g. v16.20.0]: v23.7.0
When creating scratch project, TemplateUrl is empty string.
I think this is main cause.
https://github.com/supabase/cli/blob/535b14cf12b66ae9dec2c032b2fbf7b7b14a2324/internal/bootstrap/bootstrap.go#L82
I think the solution is to add a template for scratch to https://github.com/supabase/supabase/tree/master/examples/.
The PR for this issue is merged. https://github.com/supabase/cli/pull/3848