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
tomaspozo
tomaspozo3w ago
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
tomaspozo
tomaspozo3w ago
Deploy to Production | Supabase Docs
Deploy your Edge Functions to your remote Supabase Project.
</error>
</error>OP3w ago
I already tried with cli, but when doing npm install -g supabase I get an error thats why I tried via dashboard
tomaspozo
tomaspozo3w ago
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
tomaspozo
tomaspozo3w ago
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
inder
inder3w ago
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
silentworks
silentworks3w ago
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.
</error>
</error>OP3w ago
yes I just pasted the code in to supabase and then gave it a name as a function thanks!

Did you find this page helpful?