I made 4 functions, how do I deploy them via the dashboard
admin-create-admin, admin-get-admins, admin-change-password, admin-delete-admin
they are already in supabase/functions
8 Replies
to deploy via dashboard, you create the functions on the dashboard and edit the code there directly... if you have the code locally, better to use the supabase cli to deploy:
npx supabase functions deploy
Deploy to Production | Supabase Docs
Deploy your Edge Functions to your remote Supabase Project.
I already tried with cli, but when doing npm install -g supabase I get an error
thats why I tried via dashboard
ok, then yes, you can do it directly on the dashboard, here is a guide for it: https://supabase.com/docs/guides/functions/quickstart-dashboard
Getting Started with Edge Functions (Dashboard) | Supabase Docs
Get started with Supabase Edge Functions.
but, I encourage you to create a new post with your CLI issue, so we can help out with that one
the CLI is a great tool for you to have
I actually faced the same issue today. cli is not allowed to be installed globally with package managers. Only as a dev-dependency.
https://github.com/supabase/cli/issues/1809#issuecomment-1877051209
You should never install the CLI globally and I would even further say stay away from any global installer of the CLI. i.e. homebrew
Global install of the CLI is a nightmare to manage when you want to rollback a version and it has happened multiple times where a version rollback has been necessary.
yes I just pasted the code in to supabase and then gave it a name as a function thanks!