Skip to content

docs: add cli global install note and correct user.new_email - #43151

Merged
ChrisChinchilla merged 4 commits into
supabase:masterfrom
7ttp:docs/npm-globalcli
Mar 20, 2026
Merged

ChrisChinchilla merged 4 commits into
supabase:masterfrom
7ttp:docs/npm-globalcli

Conversation

@7ttp

@7ttp 7ttp commented Feb 24, 2026 •

Copy link
Copy Markdown
Member

Problem

  1. Users attempting to install the Supabase CLI globally via npm install -g supabase
  2. The Send Email Hook documentation incorrectly references user.email_new instead of the correct field name user.new_email

Solution

  1. Added a clear note in the CLI getting started guide warning users that npm global installation is not supported, directing them to use the recommended installation methods instead
  2. Corrected all three instances of user.email_new to user.new_email in the Send Email Hook documentation to match the actual User interface definition from @supabase/auth-js

Related

@vercel

vercel Bot commented Feb 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Mar 17, 2026 5:11pm
8 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Mar 17, 2026 5:11pm
studio Ignored Ignored Mar 17, 2026 5:11pm
design-system Skipped Skipped Mar 17, 2026 5:11pm
learn Skipped Skipped Mar 17, 2026 5:11pm
studio-self-hosted Skipped Skipped Mar 17, 2026 5:11pm
studio-staging Skipped Skipped Mar 17, 2026 5:11pm
ui-library Skipped Skipped Mar 17, 2026 5:11pm
zone-www-dot-com Skipped Skipped Mar 17, 2026 5:11pm

Request Review

@vercel

vercel Bot commented Feb 24, 2026

Copy link
Copy Markdown

@7ttp is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Feb 24, 2026
@coderabbitai

coderabbitai Bot commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Cache: Disabled due to Reviews > Disable Cache setting

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c4cf6f2 and f49958a.

📒 Files selected for processing (1)
  • apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Clarified CLI installation guidance: added an advisory that global npm installation via npm install -g is not supported and recommending Homebrew, Scoop, or the standalone binary.
    • Updated authentication docs to use the new email field name (user.new_email) throughout Secure Email Change guidance and related token/hash mapping notes.

Walkthrough

This PR updates the Supabase CLI getting started guide (Node.js/npm tab) to add an admonition that global installation via npm install -g supabase is not supported. It directs users to use npx supabase, install locally via npm install supabase --save-dev, or install globally via Homebrew, Scoop, or the standalone binary. No code or behavior changes were made; only documentation content was added (6 lines added).

Sequence Diagram(s)

(omitted — change is documentation-only and does not introduce new multi-component control flow)

Assessment against linked issues

Objective Addressed Explanation
Document that global npm installation via npm install -g supabase is not supported and provide alternative methods [#4496] ✅

Out-of-scope changes

Code Change Explanation
Updated email field references from user.email_new to user.new_email (apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx) This documentation change relates to auth field naming and is not part of the npm/install documentation objective in #4496.

Comment @coderabbitai help to get the list of available commands and usage tips.

@7ttp
7ttp force-pushed the docs/npm-globalcli branch from 84cb5ce to c4cf6f2 Compare February 24, 2026 18:44
@7ttp
7ttp requested a review from ChrisChinchilla February 24, 2026 18:53
@7ttp 7ttp changed the title docs: add note that npm global install is not supported docs: add cli global install note and correct user.new_email Feb 25, 2026

@ChrisChinchilla ChrisChinchilla 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.

Thanks @7ttp

@ChrisChinchilla
ChrisChinchilla merged commit 8386499 into supabase:master Mar 20, 2026
21 checks passed
@github-actions

github-actions Bot commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1774004452)

Score Average Improvements Regressions
Completeness 0% (+0pp) - -
Conciseness 19.2% (+6pp) 4 🟢 2 🔴
Goal Completion 7.7% (+1pp) 3 🟢 2 🔴
Tool Usage 33.3% (-3pp) 1 🟢 3 🔴
Correctness 0% (+0pp) - -
Docs Faithfulness 80.8% (-3pp) 1 🟢 1 🔴
Time_to_first_token 0.5tok (-0.06tok) 5 🟢 8 🔴
Llm_calls 10.28 (+0.05) 2 🟢 2 🔴
Tool_calls 1.23 (-0.15) 3 🟢 3 🔴
Errors 1 (+0) - -
Llm_errors 1 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 6836.62tok (+0tok) - -
Prompt_cached_tokens 5602.46tok (-745.03tok) 1 🟢 5 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 890.92tok (-8.77tok) 6 🟢 7 🔴
Completion_reasoning_tokens 786.05tok (+4.92tok) 6 🟢 7 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 7727.54tok (-8.77tok) 6 🟢 7 🔴
Estimated_cost 0$ (+0$) 5 🟢 8 🔴
Duration 16.73s (+0.83s) 3 🟢 10 🔴
Llm_duration 31.5s (+2.05s) 3 🟢 10 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

user.email_new should be user.new_email Docs: npm global install is unsupported but not documented

2 participants