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
If you're want to install the package from Visual Studio, you must open the project/solution in Visual Studio, and open the console using the **Tools** > **NuGet Package Manager** > **Package Manager Console** command and run the install command:
78
76
```
79
77
Install-Package DotEnv.Core
@@ -284,6 +282,34 @@ MYSQL_USER=root
284
282
```
285
283
In the above example, the parser should throw an exception because the `MYSQL_USER` variable is not set.
286
284
285
+
### Export variables
286
+
287
+
Lines can start with the `export` prefix, which has no effect on their interpretation.
288
+
```bash
289
+
export VAR=VALUE
290
+
export KEY=VALUE
291
+
```
292
+
The `export` prefix makes it possible to export environment variables from a file using the `source` command:
293
+
```bash
294
+
source .env
295
+
```
296
+
297
+
### Multiline values
298
+
299
+
It is possible for single- or double-quoted values to span multiple lines. The following examples are equivalent:
300
+
```bash
301
+
KEY="first line
302
+
second line"
303
+
304
+
VAR='first line
305
+
second line'
306
+
```
307
+
308
+
```bash
309
+
KEY="first line\nsecond line"
310
+
VAR='first line\nsecond line'
311
+
```
312
+
287
313
## Frequently Answered Questions
288
314
289
315
### Can I use an `.env file` in a production environment?
@@ -302,4 +328,12 @@ By default, it won't overwrite existing environment variables as dotenv assumes
302
328
303
329
## Contribution
304
330
305
-
If you want to contribute in this project, simply fork the repository, make changes (I recommend that you create your own branch) and then create a [pull request](https://github.com/MrDave1999/dotenv.core/pulls).
331
+
Any contribution is welcome, the **parser** is still VERY dumb, so if you can improve it, do it.
332
+
333
+
Follow the steps below:
334
+
335
+
1. Fork it
336
+
2. Create your feature branch (git checkout -b my-new-feature)
337
+
3. Commit your changes (git commit -am 'Added some feature')
338
+
4. Push to the branch (git push origin my-new-feature)
339
+
5. Create new [Pull Request](https://github.com/MrDave1999/dotenv.core/pulls)
If you're want to install the package from Visual Studio, you must open the project/solution in Visual Studio, and open the console using the **Tools** > **NuGet Package Manager** > **Package Manager Console** command and run the install command:
0 commit comments