$ dotenv -- This will load the variables from the .env file in the current working directory and then run the command (using the new set of environment variables). Alternatively, if you do not need to pass arguments to the command, you can use the shorthand: $ dotenv Custom .env files...
$ dotenv -- This will load the variables from the .env file in the current working directory and then run the command (using the new set of environment variables). Alternatively, if you do not need to pass arguments to the command, you can use the shorthand: $ dotenv Custom .env files...
In bash, everything between'is not interpreted but passed as is. Since$SAY_HIis inside''brackets, it's passed as a string literal. Therefore,dotenv-cliwill start a child processbash -c 'echo "$SAY_HI"'with the env variableSAY_HIset correctly which means bash will runecho "$SAY_HI"in...