1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 19:35:27 +02:00

dotenvx: add page (#13738)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
John Mao 2024-09-22 10:12:45 +08:00 committed by GitHub
parent 800ea85abd
commit a3f196e124
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

32
pages/common/dotenvx.md Normal file
View file

@ -0,0 +1,32 @@
# dotenvx
> A better `dotenv`, from the creator of `dotenv`.
> More information: <https://dotenvx.com/docs>.
- Run a command with environment variables from a `.env` file:
`dotenvx run -- {{command}}`
- Run a command with environment variables from a specific `.env` file:
`dotenvx run -f {{path/to/file.env}} -- {{command}}`
- Set an environment variable with encryption:
`dotenvx set {{key}} {{value}}`
- Set an environment variable without encryption:
`dotenvx set {{key}} {{value}} --plain`
- Return environment variables defined in a `.env` file:
`dotenvx get`
- Return the value of an environment variable defined in a `.env` file:
`dotenvx get {{key}}`
- Return all environment variables from `.env` files and OS:
`dotenvx get --all`