Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to validate a .env file?

Tags:

ini

I'm getting errors when trying to parse a .env file I have, but I have no way of figuring out where it's erring out. Is there an easy way to lint/validate the file, online or otherwise?

Many thanks!

like image 341
Mr Mikkél Avatar asked May 25 '17 22:05

Mr Mikkél


1 Answers

You can try https://github.com/dotenv-linter/dotenv-linter. It's a lightning-fast linter for .env files. Written in Rust.

like image 99
mgrachev Avatar answered Nov 06 '22 20:11

mgrachev