Skip to content

Instantly share code, notes, and snippets.

@arkumish
Last active May 7, 2021 05:28
Show Gist options
  • Save arkumish/7d3bd25586f9fac24d4428c50c2d2873 to your computer and use it in GitHub Desktop.
Save arkumish/7d3bd25586f9fac24d4428c50c2d2873 to your computer and use it in GitHub Desktop.
Environment variable in WINDOWS
To Change "Enviroment variable" in Windows,
if number
In Command Prompt: set PORT=5000
In Power Shell: $env:PORT=5000
if string
In Command Prompt: set NODE_ENV=prod
In Power Shell: $env:NODE_ENV='prod'
----------------------------------------------------
To check "Environment variable" in Windows
In Command Prompt: echo %PORT%
In Power Shell: $env:PORT
----------------------------------
for vs code deafult terminal use power shell command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment