dotenv-types is a CLI for generating .env typings for Typescript
Use the package manager npm to install dotenv-types.
$ npm i -g dotenv-types
You can also run the CLI with npx
$ npx dotenv-types
$ dotenv-types -h
Outputs:
_ _ _
__| | ___ | |_ ___ _ ____ __ | |_ _ _ _ __ ___ ___
/ _` |/ _ \| __/ _ \ '_ \ \ / /____| __| | | | '_ \ / _ \/ __|
| (_| | (_) | || __/ | | \ V /_____| |_| |_| | |_) | __/\__ \
\__,_|\___/ \__\___|_| |_|\_/ \__|\__, | .__/ \___||___/
|___/|_|
Usage: dotenv-types[options]
Options:
-V, --version output the version number
-F, --file <file> Your .env file
-f, --filename <filename> Output filename
-d, --directory <dir> Output directory
-h, --help display help for command
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.