Back to Examples
dotenvx
Secure your environment variables with dotenvx—cross-platform, multi-environment, and encrypted. Discover more about our innovative solution today!
Lines
2,802
Sections
9
Want your own llms.txt file?
Generate a professional, AI-friendly file for your website in minutes!
llms.txt Preview
[](https://dotenvx.com)
*a secure dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
* run anywhere (cross-platform)
* multi-environment
* encrypted envs
[Read the whitepaper](https://dotenvx.com/dotenvx.pdf?v=README)
### Quickstart [](https://www.npmjs.com/package/@dotenvx/dotenvx) [](https://www.npmjs.com/package/@dotenvx/dotenvx) [](https://github.com/dotenvx/dotenvx/tree/main/tests)
Install and use it in code just like `dotenv`.
```sh
npm install @dotenvx/dotenvx --save
```
```js
// index.js
require('@dotenvx/dotenvx').config()
// or import '@dotenvx/dotenvx/config' // for esm
console.log(`Hello ${process.env.HELLO}`)
```
or install globally - *unlocks dotenv for any language, framework, or platform!*
<details><summary>with curl 🌐 </summary><br>
```sh
curl -sfS https://dotenvx.sh | sh
dotenvx help
```
[](https://github.com/dotenvx/dotenvx.sh/blob/main/install.sh)
</details>
<details><summary>with brew 🍺</summary><br>
```sh
brew install dotenvx/brew/dotenvx
dotenvx help
```
[](https://github.com/dotenvx/homebrew-brew/blob/main/Formula/dotenvx.rb)
</details>
<details><summary>with docker 🐳</summary><br>
```sh
docker run -it --rm -v $(pwd):/app dotenv/dotenvx help
```
[](https://hub.docker.com/r/dotenv/dotenvx)
</details>
<details><summary>with github releases 🐙</summary><br>
```sh
curl -L -o dotenvx.tar.gz "https://github.com/dotenvx/dotenvx/releases/latest/download/dotenvx-$(uname -s)-$(uname -m).tar.gz"
tar -xzf dotenvx.tar.gz
./dotenvx help
```
[](https://github.com/dotenvx/dotenvx/releases)
</details>
<details><summary>or windows 🪟</summary><br>
```sh
winget install dotenvx
dotenvx help
```
</details>
## Run Anywhere
```sh
$ echo "HELLO=World" > .env
Preview of dotenvx's llms.txt file. View complete file (2,802 lines) →
Ready to create yours?
Generate a professional llms.txt file for your website in minutes with our AI-powered tool.
Generate Your llms.txt File