home ¦ Archives ¦ Atom ¦ RSS

uv and .env

From Daniel Roy Greenfeld, TIL: Loading .env files with uv run”

We don’t need python-dotenv, use uv run with —env-file, and your env vars from .env get loaded.

Good to know, even though I’m all in on direnv to auto load .env files. Also, handy to make Poe the Poet tasks that invoke uv underneath the covers really explicit.

© 2008-2025 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.