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


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.


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