Supabase CLI Installation Guide - Windows

Quick guide to install Supabase CLI on Windows to deploy Edge Functions.

Install

npm install -g supabase

Verify Installation

supabase --version

You should see something like: 1.200.3

Common Issues

Error: "npm command not found"

  • Install Node.js from https://nodejs.org (LTS version recommended)

  • Restart your terminal after installing

Error: "Permission denied"

  • Run PowerShell as Administrator

  • Or use npm install -g supabase --force


Option 2: Scoop (Windows Package Manager)

1. Install Scoop (if not installed)

Open PowerShell and run:

2. Install Supabase CLI

3. Verify Installation


Option 3: Direct Download (No Package Manager)

1. Download Binary

Go to: https://github.com/supabase/cli/releases/latest

Download: supabase_windows_amd64.zip

2. Extract and Add to PATH

3. Verify Installation


1. Login to Supabase

This opens your browser for authentication. If it doesn't open automatically:

  1. Copy the URL from the terminal

  2. Paste it in your browser

  3. Click "Authorize CLI"

When prompted, enter your database password (the one you created when setting up the Supabase project).

You should see your project details.


Deploy WhatsApp Edge Function

Once installed and linked, deploy the function:


Troubleshooting

"supabase: command not found" after installation

Solution 1: Restart Terminal

  • Close PowerShell/CMD completely

  • Open new terminal window

Solution 2: Check PATH

Solution 3: Use npx (temporary workaround)

"Error connecting to project"

  • Verify project ref is correct: bsbjwjpgiangjqqqxota

  • Check you're using the correct database password

  • Ensure you have internet connection

"Access denied" when setting secrets

  • Make sure you're logged in: supabase login

  • Verify project is linked: supabase status

  • Try re-linking: supabase unlink then supabase link

"Function deployment failed"

  • Check function code exists: ls supabase/functions/send-whatsapp/index.ts

  • Verify no syntax errors in the TypeScript file

  • Check deployment logs: supabase functions list


Quick Reference Commands


Full Setup Script (Copy & Paste)

Once Supabase CLI is installed, run this complete setup:


Success Indicators

After deployment, you should see:


Testing After Deployment

Test with curl

Test in Browser

  1. Open http://localhost:3000

  2. Console: localStorage.setItem('currentView', 'FLEETOS'); location.reload()

  3. Click yellow "Test WhatsApp" button

  4. Should now show: "Backend API (Production Ready)"

  5. Send test message - should work without CORS error!


  • Supabase CLI Docs: https://supabase.com/docs/guides/cli

  • Edge Functions Guide: https://supabase.com/docs/guides/functions

  • GitHub Releases: https://github.com/supabase/cli/releases

  • Troubleshooting: https://supabase.com/docs/guides/cli/troubleshooting


Need Help?

Check installation:

View detailed help:

Check project status:

Last updated

Was this helpful?