Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
28 replies
CodewithCJ

supabase functions deploy via script

Below is the command I am trying to deploy functions via linux script.

``supabase functions deploy "$func_name" --project-ref "$SUPABASE_PROJECT_REF" 

I also setup  set env variable for SUPABASE_ACCESS_TOKEN  using the token generated using https://supabase.com/dashboard/account/tokens 
But I am getting error as  "Invalid access token format. Must be like 
``supabase functions deploy "$func_name" --project-ref "$SUPABASE_PROJECT_REF" 

I also setup  set env variable for SUPABASE_ACCESS_TOKEN  using the token generated using https://supabase.com/dashboard/account/tokens 
But I am getting error as  "Invalid access token format. Must be like 
sbp_0102...1920`."
The token I generated as "sbp_v0_c2". How do we get the format it needs?

And also is it possible to deploy functions via script without manually loging , selecting db etc without human intreaction. Am I in the correct track to use above line ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

supabase functions deploy and deno.json
SupabaseSSupabase / help-and-questions
4mo ago
functions deploy freeze problem
SupabaseSSupabase / help-and-questions
2w ago
Cannot deploy edge functions
SupabaseSSupabase / help-and-questions
7mo ago
Cannot deploy edge functions
SupabaseSSupabase / help-and-questions
3y ago