© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
3 replies
lake_mattiato

supabase login command does not work in gitlab ci/cd

 # - export SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN
 # - npx supabase login --token $SUPABASE_ACCESS_TOKEN
 # - npx supabase login
 # - export SUPABASE_ACCESS_TOKEN=$SUPABASE_ACCESS_TOKEN
 # - npx supabase login --token $SUPABASE_ACCESS_TOKEN
 # - npx supabase login


Neither example works, I tried various attempts, even exporting the variable and the running the login command, i also tried specifying the --token flag, but nothing works.
I get the following error:
$ npx supabase login --token $SUPABASE_ACCESS_TOKEN
Cannot use automatic login flow inside non-TTY environments. Please provide --token flag or set the SUPABASE_ACCESS_TOKEN environment variable.
$ npx supabase login --token $SUPABASE_ACCESS_TOKEN
Cannot use automatic login flow inside non-TTY environments. Please provide --token flag or set the SUPABASE_ACCESS_TOKEN environment variable.


The variable SUPABASE_ACCESS_TOKEN is correctly set inside the Variables section. I can echo it and i get the correct value. I tried masking and unmasking it and it still does not work.

Thanks in advance.
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 cli CI/CD failing
SupabaseSSupabase / help-and-questions
3y ago
Seeding auth.users with Gitlab CI/CD job
SupabaseSSupabase / help-and-questions
8mo ago
CI/CD question
SupabaseSSupabase / help-and-questions
3mo ago
Supabase cli ci/cd with github actions cannot connect
SupabaseSSupabase / help-and-questions
8mo ago