The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
---
title = "Forbidden resource error from the CLI"
github_url = "https://github.com/orgs/supabase/discussions/21602"
date_created = "2024-02-27T09:37:38+00:00"
topics = [ "cli", "platform" ]
keywords = [ "cli", "authorization", "token", "permissions" ]
database_id = "b095c3ed-23e7-4a17-9e33-d811af25ba67"
[api]
cli = [ "supabase-link", "supabase-login" ]
[[errors]]
http_status_code = 403
message = "Forbidden resource error"
---
This error typically occurs as a protective measure to prevent unauthorized access to critical operations.
To address this issue, we recommend following these troubleshooting steps:
- Verify Project ID: Ensure the `$PROJECT_REF` variable in your commands contains the correct Project ID. You can find your Reference ID under [Project -> Settings -> General](/dashboard/project/_/settings/general) in your Supabase Dashboard. A Reference ID looks something like `xvljpkujuwroxcuvossw`.
- Authorization Check: Confirm that you’ve been properly authorized. You can also generate a new Access Token in your dashboard and use it for login. Generate a new token [here](/dashboard/account/tokens) and use it to [log in](/docs/reference/cli/supabase-login).
- Re-link Project: Try [re-linking](/docs/reference/cli/supabase-link) your project with the newly generated token.
- Owner/Admin Permissions: Make sure you have [Owner/Admin](/docs/guides/platform/access-control) permissions for the project.
- CLI Version: Ensure you are using the latest version of the Supabase CLI. If not, update to the most recent version available at [Supabase CLI GitHub](https://github.com/supabase/cli).
If the issue persists, add a --debug --create-ticket flags to your command and contact [support](/support) with the ticket id and debug logs, which can help in diagnosing the problem further.