You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* After you set your environment variables, you'll need to exit the shell and reopen it before the changes will be available. The value will remain modified until you change it again.
44
+
* After you set your environment variables, you'll need to exit the shell, and reopen it before the changes will be available. The value will remain modified until you change it again.
45
45
46
46
* Restart any running programs that will read the environment variable. For example, if you're using Visual Studio or Visual Studio Code as your editor, restart before running the sample code.
47
47
48
48
Here are a few more helpful commands to use with environment variables:
49
49
50
50
| Command | Action | Example |
51
51
|---------|--------|---------|
52
-
|**setx** </br>VARIABLE_NAME=value | Set or change the value of an environment variable|`setx FR_KEY={yourKey}`|
53
52
|**setx** </br>VARIABLE_NAME= | Delete the environment variable by setting the value to an empty string.|`setx FR_KEY=`|
54
-
|**set** </b>VARIABLE_NAME | Display the value of a specific environment variable|`set FR_KEY`|
53
+
|**setx** </br>VARIABLE_NAME=value | Set or change the value of an environment variable|`setx FR_KEY={yourKey}`|
54
+
|**set** </br>VARIABLE_NAME | Display the value of a specific environment variable|`set FR_KEY`|
55
55
|**set**| Display all environment variables.|`set`|
56
56
57
57
#### [macOS](#tab/macOS)
@@ -94,8 +94,8 @@ Here are a few more helpful commands to use with environment variables:
94
94
95
95
| Command | Action | Example |
96
96
|---------|--------|---------|
97
-
|**export**</br>VARIABLE_NAME=value | Set or change the value of a temporary environment variable ().|`export FR_KEY={yourKey}`|
98
97
|**unset**</br>VARIABLE_NAME | Delete an environment variable.|`unset FR_KEY`|
98
+
|**export**</br>VARIABLE_NAME=value | Set or change the value of a temporary environment variable ().|`export FR_KEY={yourKey}`|
99
99
|•**printenv**</br> VARIABLE_NAME</br>•**echo**</br>$VARIABLE_NAME| Display the value of a specific environment variable (with the **echo** command, precede the variable with $).|•`printenv FR_KEY`</br>•`echo $FR_KEY`</br>|
100
100
|**printenv**| Display all environment variables.|`printenv`|
101
101
@@ -139,8 +139,8 @@ Here are a few more helpful commands to use with environment variables:
139
139
140
140
| Command | Action | Example |
141
141
|---------|--------|---------|
142
-
| **export** </br>VARIABLE_NAME=value | Set or change the value of a temporary environment variable (only lasts until you close the terminal session).| `export FR_KEY={yourKey}`|
143
142
| **unset** </br>VARIABLE_NAME| Delete an environment variable.|`unset FR_KEY=` |
143
+
| **export** </br>VARIABLE_NAME=value | Set or change the value of a temporary environment variable (only lasts until you close the terminal session).| `export FR_KEY={yourKey}`|
144
144
| • **printenv** </br>VARIABLE_NAME</br> • **echo** </br>$VARIABLE_NAME| Display the value of an environment variable (with the **echo** command, precede the variable with $).| • `printenv FR_KEY` </br>• `echo $FR_KEY`</br>|
145
145
| **printenv**| Display all environment variables.|`printenv`|
0 commit comments