Releases: jongpie/sf-dotenv-cli-plugin
Releases · jongpie/sf-dotenv-cli-plugin
v1.0.0 - Initial release
This is the first release of a new sf CLI plugin for loading .env files when using any sf CLI command
Highlights of features:
- Automatic loading - A prerun hook loads a
.envfile (default:.envin the current directory) before everysfcommand. Values from the file override existing env vars of the same name; others are left unchanged. - Per-command file - Use
--env/-ewith any command to load a specific file (e.g.sf project deploy start --env .env.prod). - Config -
sf config set should-log-env falsedisables prerun logging of variable names. Optional env vars:SF_DOTENV_DISABLED,SF_DOTENV_FILE. - Includes two
dotenvcommands:sf dotenv inspect- Loads a given.envfile and prints the loaded variable names; pass--show-valuesto also print values (with a security warning).sf dotenv export- ReadsreplaceWithEnventries fromsfdx-project.jsonand writes any missing keys to a.envfile, defaulting any value already present in the shell's environment. Use--output-file/-oto target a non-default file.