Effortlessly create sample environment files tailored to your projects with ease. This cli streamlines the process by effortlessly generating environment files, ensuring all sensitive information is excluded saving you the hassle of manually scrubbing secrets.
npm i sample-env -g
sample-env --env .env --sample .env.example --banner "hello world" --removeComments --prefix REACT_APP_
This command will:
.env
fileREACT_APP_
.env.example
fileThe cli takes these optional flags.
.env
) - use this option if you want to use a different file name
--env .env.dev
.env.sample
) - use this option if you want to use a output file name
--sample .env.example
--banner "hello world"
--removeComments
--prefix REACT_APP_
or --prefix REACT_APP_ --prefix GATSBY_
sample-env --help