# Export all variables in an envfile

## Table of contents <!-- omit in toc -->

1. [TL;DR](#tldr)
1. [Sources](#sources)

## TL;DR

```sh
set -o allexport
source envfile
set +o allexport
```

## Sources

- [Set environment variables from file of key/value pairs]

<!--
  References
  -->

<!-- Others -->
[set environment variables from file of key/value pairs]: https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-value-pairs#30969768
