Forbidden resource error from the CLI
Last edited: 1/15/2025
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 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 and use it to log in.
- Re-link Project: Try re-linking your project with the newly generated token.
- Owner/Admin Permissions: Make sure you have Owner/Admin permissions for the project.
- CLI Version: Ensure you are using the latest version of the Supabase CLI. If not, please update to the most recent version available at Supabase CLI GitHub.
If the issue persists, add a --debug --create-ticket flags to your command and contact support with the ticket id and debug logs, which can help in diagnosing the problem further.