Environment variables for functions with netlify dev

My site is https://splendorous-daffodil-dd7fe3.netlify.app/.
When deployed, my functions can access environment variable that are defined in netlify UI.
But when I run them with netlify dev, they are not defined.
All posts that I have read seem to be about the other way round…

Have you run netlify link?

That was it! (I was right to tag this as a newbie question…)

glad you found your solution! (: :+1:t6: