set env variable windows code example
Example 1: how to create env variable from cmd
set varname
set varname=value
set varname=
set
Example 2: set environment variable windows command line
setx EC2_CERT "%USERPROFILE%\aws\cert.pem"
Example 3: how to set up env variable
npm install dotenv --save
Next add the following line to your app: "require('dotenv').config()"
Then create a .env file at the root directory of your application
and add the variables to it.