snippetbashTip
dotenvx — A better `dotenv`, from the creator of `dotenv`. More information: <https://dotenvx.com/docs/>.
Viewed 0 times
dotenvxbetterthedotenvcommandcreatorfromcli
Problem
How to use the
dotenvx command: A better dotenv, from the creator of dotenv. More information: <https://dotenvx.com/docs/>.Solution
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}} --plainReturn environment variables defined in a
.env file:dotenvx getReturn 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 --allCode Snippets
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}} --plainReturn environment variables defined in a `.env` file
dotenvx getContext
tldr-pages: common/dotenvx
Revisions (0)
No revisions yet.