PYTHON-DOTENV(1)

PYTHON-DOTENV(1) πŸ’–

okay bestie, welcome to the User Commands section, this is the python-dotenv manual page and honestly? she's a whole vibe. ✨


🌸 NAME 🌸

python-dotenv β€” the .env file manipulator. that's it, that's the girl. she sets, she gets, she unsets. queen behavior. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

python-dotenv [OPTIONS] COMMAND [ARGS]...

like yes, options first, then the command, then the args for that command. order matters, i don't make the rules (she does). πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so basically this script is used to set, get or unset values from a .env file. that's the whole job. no cap. 🫢


✨ OPTIONS ✨

  • -f, --file PATH β€” tells her where the .env file is at. if you don't say anything, she just assumes there's a .env file chillin' in the current working directory. lowkey default behavior. πŸ“
  • -q, --quote [always|never|auto] β€” do we quote the variable values or not, that's the question. the default mode is always. and heads up bestie, this does not affect parsing. nope. not even a little. πŸ™ˆ
  • -e, --export BOOLEAN β€” whether to write the dot file as an executable bash script. yep, executable. bash. script. iconic tbh. 🧚
  • --version β€” shows the version and dips. that's it. πŸ’–
  • --help β€” shows this message and exits. the classic. the moment. 🌈

πŸ’œ Commands: πŸ’œ

  • get β€” retrieve the value for the given key. go get your girl (the value). 🫢
  • list β€” display all the stored key/value pairs. show them off, they're all main characters. ⭐
  • run β€” run a command with the environment variables present. she's coming WITH you. πŸ”₯
  • set β€” store the given key/value. put it in the vault bestie. πŸ’…
  • unset β€” removes the given key. gone. deleted. not me erasing your ex. πŸ’€

fr fr, that's the whole page β€” every flag, every command, nothing skipped, nothing made up. periodt. πŸ‘‘

🌸 that's a wrap on python-dotenv version 1.2.1-2, dated March 2026. ty for coming to my ted talk, love u, mwah πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from