Advanced
dotenvx set KEY -- "- + * ÷"
Set a value containing a leading dash.
If your value starts with a dash (-
), then place two dashes instructing the cli that there are no more flag arguments.
$ touch .env.ci
$ dotenvx set HELLO -f .env.ci -- "- + * ÷"
set HELLO with encryption (.env.ci)