Skip to content

docs: clarify npm global install is unsupported for Supabase CLI - #41886

Merged
ChrisChinchilla merged 5 commits into
supabase:masterfrom
omwanere:docs/cli-npm-global-install
Mar 24, 2026
Merged

ChrisChinchilla merged 5 commits into
supabase:masterfrom
omwanere:docs/cli-npm-global-install

Conversation

@omwanere

@omwanere omwanere commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Clarifies that installing the Supabase CLI globally via npm is not supported.

Details

The CLI already throws a clear error when attempting a global npm install, but the documentation did not mention this.
This update adds a clear note to the Node.js installation section and points users to supported alternatives.

Related issue

Closes #4496

Summary by CodeRabbit

  • Documentation
    • Added a clear admonition in the getting started guide clarifying that the Supabase CLI should not be installed globally via npm. Recommends Homebrew, Scoop, or the standalone binary, and suggests using npx or a local/dev dependency as alternatives. The guidance appears both after the Node.js note and within the npm install tab.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel

vercel Bot commented Jan 14, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jan 14, 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 24, 2026 4:40pm
8 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Mar 24, 2026 4:40pm
studio Ignored Ignored Mar 24, 2026 4:40pm
design-system Skipped Skipped Mar 24, 2026 4:40pm
learn Skipped Skipped Mar 24, 2026 4:40pm
studio-self-hosted Skipped Skipped Mar 24, 2026 4:40pm
studio-staging Skipped Skipped Mar 24, 2026 4:40pm
ui-library Skipped Skipped Mar 24, 2026 4:40pm
zone-www-dot-com Skipped Skipped Mar 24, 2026 4:40pm

Request Review

@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 Jan 14, 2026
@coderabbitai

coderabbitai Bot commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

Added two admonition note blocks to the Supabase CLI getting-started doc clarifying that global npm install -g is unsupported and recommending Homebrew, Scoop, the standalone binary, or using npx/a local dependency. Inserts appear after the Node.js note and inside the npm installation tab.

Changes

Cohort / File(s) Summary
Documentation
apps/docs/content/guides/local-development/cli/getting-started.mdx
Added two admonition note blocks clarifying that global npm install -g is unsupported; recommends Homebrew, Scoop, standalone binary, or use via npx / local dependency. Inserted after the initial Node.js admonition and within the npm installation tab.
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description deviates from the template structure but provides clear context about the change. It lacks the standard template sections (contribution acknowledgment, change type, current/new behavior) but includes meaningful summary and related issue. Consider following the repository template more closely by including sections for contribution acknowledgment and explicitly stating the change type (docs update) in the structured format.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: clarifying that npm global install is unsupported for Supabase CLI, which is the primary focus of the documentation update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.



📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dc7f62a and e035880.

📒 Files selected for processing (1)
  • apps/docs/content/guides/local-development/cli/getting-started.mdx
🧰 Additional context used
🧠 Learnings (5)
📓 Common learnings
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/docs-test-requirements.mdc:0-0
Timestamp: 2025-12-11T02:39:49.764Z
Learning: Applies to apps/docs/**/*.{test,spec}.ts : Before running tests in the docs application, check Supabase status using `pnpm supabase status`. If Supabase is not running, start it with `pnpm supabase start`. Reset the database with `pnpm supabase db reset --local` to ensure clean state. Run tests using `pnpm run -F docs test:local:unwatch` (without watch mode)
📚 Learning: 2025-12-11T17:04:40.037Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/studio-ui.mdc:0-0
Timestamp: 2025-12-11T17:04:40.037Z
Learning: Applies to apps/studio/**/*.{ts,tsx} : Place Admonition at the top of page contents (below page title) or at the top of the related ScaffoldSection below ScaffoldTitle

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2025-12-11T17:04:40.037Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/studio-ui.mdc:0-0
Timestamp: 2025-12-11T17:04:40.037Z
Learning: Applies to apps/studio/components/**/*.{ts,tsx} : Use Admonition component to alert users of important actions or restrictions

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2025-12-11T17:04:40.037Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/studio-ui.mdc:0-0
Timestamp: 2025-12-11T17:04:40.037Z
Learning: Use Admonition sparingly

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2026-01-05T23:42:52.357Z
Learnt from: kallebysantos
Repo: supabase/supabase PR: 41727
File: apps/docs/content/guides/functions/auth.mdx:93-93
Timestamp: 2026-01-05T23:42:52.357Z
Learning: When reviewing MDX documentation that uses CodeSample components in Supabase docs, it's acceptable for CodeSample meta attributes to display generic example file names (e.g., hello/index.ts) to illustrate templating. Do not flag these as file-path mismatches unless the docs claim an exact reference to a real file. If you encounter such code samples, ensure the surrounding text clarifies that the names are placeholders to be adapted by users, and suggest adding a note explaining how to map the template to a real project path.

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
🔇 Additional comments (1)
apps/docs/content/guides/local-development/cli/getting-started.mdx (1)

75-83: LGTM!

The Admonition is now properly formatted as raw MDX content (previous code block wrapper issue resolved). The note clearly communicates that global npm installation is unsupported while providing actionable alternatives (Homebrew, Scoop, standalone binary, npx, or local dev dependency). Placement after the Node.js version caution is logical since both notes apply to npm/Node.js users.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


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

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

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/docs/content/guides/local-development/cli/getting-started.mdx`:
- Around line 75-85: The Admonition component is wrapped in a markdown code
block which prevents it from rendering; remove the surrounding triple-backtick
block (the ```md opener and closing ```) so the <Admonition
type="note">...</Admonition> JSX/MDX is raw content and will render correctly.
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fb7fbcb and dc7f62a.

📒 Files selected for processing (1)
  • apps/docs/content/guides/local-development/cli/getting-started.mdx
🧰 Additional context used
🧠 Learnings (5)
📓 Common learnings
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/docs-test-requirements.mdc:0-0
Timestamp: 2025-12-11T02:39:49.764Z
Learning: Applies to apps/docs/**/*.{test,spec}.ts : Before running tests in the docs application, check Supabase status using `pnpm supabase status`. If Supabase is not running, start it with `pnpm supabase start`. Reset the database with `pnpm supabase db reset --local` to ensure clean state. Run tests using `pnpm run -F docs test:local:unwatch` (without watch mode)
📚 Learning: 2025-12-11T17:04:40.037Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/studio-ui.mdc:0-0
Timestamp: 2025-12-11T17:04:40.037Z
Learning: Applies to apps/studio/**/*.{ts,tsx} : Place Admonition at the top of page contents (below page title) or at the top of the related ScaffoldSection below ScaffoldTitle

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2025-12-11T17:04:40.037Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/studio-ui.mdc:0-0
Timestamp: 2025-12-11T17:04:40.037Z
Learning: Applies to apps/studio/components/**/*.{ts,tsx} : Use Admonition component to alert users of important actions or restrictions

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2025-12-11T02:39:49.764Z
Learnt from: CR
Repo: supabase/supabase PR: 0
File: .cursor/rules/docs-test-requirements.mdc:0-0
Timestamp: 2025-12-11T02:39:49.764Z
Learning: Applies to apps/docs/**/*.{test,spec}.ts : Before running tests in the docs application, check Supabase status using `pnpm supabase status`. If Supabase is not running, start it with `pnpm supabase start`. Reset the database with `pnpm supabase db reset --local` to ensure clean state. Run tests using `pnpm run -F docs test:local:unwatch` (without watch mode)

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx
📚 Learning: 2026-01-05T23:42:52.357Z
Learnt from: kallebysantos
Repo: supabase/supabase PR: 41727
File: apps/docs/content/guides/functions/auth.mdx:93-93
Timestamp: 2026-01-05T23:42:52.357Z
Learning: When reviewing MDX documentation that uses CodeSample components in Supabase docs, it's acceptable for CodeSample meta attributes to display generic example file names (e.g., hello/index.ts) to illustrate templating. Do not flag these as file-path mismatches unless the docs claim an exact reference to a real file. If you encounter such code samples, ensure the surrounding text clarifies that the names are placeholders to be adapted by users, and suggest adding a note explaining how to map the template to a real project path.

Applied to files:

  • apps/docs/content/guides/local-development/cli/getting-started.mdx

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

@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 @omwanere

@ChrisChinchilla
ChrisChinchilla enabled auto-merge (squash) March 24, 2026 16:33
@ChrisChinchilla
ChrisChinchilla merged commit b06be0b into supabase:master Mar 24, 2026
19 checks passed
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.

2 participants