Environment variables update

Hello. I am having an issue where I cannot get the environment variables to update for the lambda functions when I am serving them locally via netlify-cli. I had created an env file initially, and the function still uses the initial value, even though I have changed it in the .env file.

Is there a cache or something that the functions use when running via the CLI?

You might have linked the CLI to your Netlify site and still have the old variables defined in the Netlify UI.