Skip to content

ci: pin the supabase cli to v3 and document its gen types targets - #2118

Merged
spydon merged 2 commits into
mainfrom
ci/supabase-cli-v3
Nov 3, 2026
Merged

spydon merged 2 commits into
mainfrom
ci/supabase-cli-v3

Conversation

@spydon

@spydon spydon commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Supabase CLI v3.0.0 is the latest release. This moves CI onto it and updates the docs to the v3 commands, so they match the CLI people install from now on.

CI and config

  • test.yml and example-integration-tests.yml pin the CLI to 3.0.0 instead of 2.120.0.
  • enable_signup under [auth.email] and [auth.sms] becomes enabled in both configs. v3 deprecates the old key and removes it in v4. enable_signup under [auth] is not deprecated and stays.

Docs

v3 targets the local stack by default and deprecates the old target flags, which v4 removes:

v2 v3
--local no flag
--linked --remote
--project-id <ref> --remote=<ref>

Every supabase gen types command and its surrounding prose now uses the v3 form: the READMEs, MIGRATION.md, the example READMEs, the skills_src templates (with skills/ regenerated) and the supabase_typegen usage message. The minimum CLI version in the docs goes from 2.122.0 to 3.0.0, since --remote does not exist in v2.

The rest of the v3 migration guide needs no changes here. Both configs set project_id, orioledb_version is empty, and nothing uses the removed linkedin/slack providers, INBUCKET_URL, per-function import_map.json or supabase-go. The examples config sets [auth.sms] enable_confirmations = true, which v3 no longer inverts, but the phone flow there is OTP-based and works on v3.

Verification on CLI 3.0.0

  • supabase start prints no deprecation warnings.
  • supabase gen types --lang dart without a target produces the same output as --local.
  • The supabase_auth and supabase_typegen suites pass.
  • check-markdown and check-skill-snippets pass.

Summary by CodeRabbit

  • Documentation

    • Updated setup, migration, and type-generation guidance to require Supabase CLI 3.0.0 or newer.
    • Clarified that local schema generation uses the default command after starting the local stack and applying migrations.
    • Updated hosted schema-generation examples to use --remote or --remote=<ref>.
  • Chores

    • Updated integration and backend test workflows to use Supabase CLI 3.0.0.
    • Updated authentication settings in the example and project configurations.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 6b6e08c and 718e18c.

Files selected for processing: 4
  • examples/realtime_room/README.md
  • packages/postgrest/README.md
  • packages/supabase/example/README.md
  • packages/supabase_flutter/example/README.md
Files skipped from review as they are similar to previous changes: 1
  • packages/supabase/example/README.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Walkthrough

The pull request updates CI to use Supabase CLI 3.0, changes email and SMS auth settings, and revises type-generation commands and version requirements across documentation, examples, and skills.

Changes: Supabase CLI 3.0 adoption

Layer / File(s) Summary
CLI version and auth configuration
.github/workflows/*, examples/supabase/config.toml, supabase/config.toml
CI workflows now select Supabase CLI 3.0. Email and SMS settings use enabled = true instead of enable_signup = true.
Type-generation commands and guidance
MIGRATION.md, README.md, examples/*/README.md, packages/*/README.md, packages/supabase*/skills/*/SKILL.md, packages/supabase_typegen/*, skills_src/generate/*, skills_src/idioms/*
Guidance raises the minimum CLI version to 3.0 and removes --local for local-stack generation. Hosted-project examples use --remote or --remote=<ref>.
Migration skill updates
packages/supabase/skills/supabase-migrate-v3/SKILL.md, packages/supabase_flutter/skills/supabase-flutter-migrate-v3/SKILL.md, skills_src/migrate-v3/SKILL.md.tmpl
Migration guidance updates its version checks and type-generation commands for CLI 3.0.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related issues

  • ☂️ v3 tracking issue #1278: The issue tracks v3 changes for Dart client libraries, and this pull request updates related CLI v3 tooling and documentation.

Possibly related PRs

Suggested labels: supabase, postgrest, auth

Merge Risk: Minimal · up to 718e1

No merge-blocking risk remains identified in this change.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the primary changes: pinning Supabase CLI to v3 and updating gen types target documentation.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread packages/postgrest/README.md Resolved
@spydon spydon added the integration tests Run the example integration tests on this pull request label Nov 2, 2026
@spydon
spydon merged commit 826a82b into main Nov 3, 2026
57 of 64 checks passed
@spydon
spydon deleted the ci/supabase-cli-v3 branch November 3, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration tests Run the example integration tests on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant