Forbidden resource error from the CLI
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_REFvariable 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 likexvljpkujuwroxcuvossw. - 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, update to the most recent version available at Supabase CLI GitHub.
If the issue persists, rerun the command with --debug and contact support with the debug output, which can help in diagnosing the problem further.
Related topics
- Platform permissions
- Supabase CLI failed SASL auth
- Supabase CLI transport error from antivirus or firewall TLS interception