You're seeing just the function load, go back to Dotenvy module for more information.


load(files :: binary() | [binary()], opts :: keyword()) ::
  {:ok, map()} | {:error, any()}

Loads one or more .env files and sets system environment variables. Files are loaded in the order they are given. Values in the last file will override conflicting values set in previous files.


  • :overwrite? boolean indicating whether or not values parsed from provided .env files should overwrite existing system environment variables. Default: false
  • :parser module that parses the given file(s). Overridable for testing. Default: Dotenv.Parser
  • :required_files specifies which of the given files (if any) must be present. When true, all the listed files must exist. When false, none of the listed files must exist. When some of the files are required and some are optional, provide a list specifying which files are required.
  • :side_effect an arity 1 function called after the successful parsing of each of the given files. The default is &System.put_env/1, which will have the effect of setting system environment variables based on the results of the file parsing.
  • :vars a map with string keys representing the starting pool of variables. Defaults to the output of System.get_env/0; overridable for testing.