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 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 ?
Was this page helpful?