How to save .env file in windows?
If you use Windows, to save any file with an extension different from the default extension of the tool you are using, You have to select the option which appears like:
All Files
or All Files (*.*)
in the Type of File dropdown in the save dialogs.
Open your xx.env file with notepad++ and file -> saveas -> rename to .env and save
In windows normally you can not create a file without name. So to create a .env file there are three ways I know...
- Copy paste from somewhere else
- If you have installed php then run this command in console
php -r "copy('anyfile.example', '.env');"
- Create a txt file called
anything.txt
openCMD
and find its dir then runren anything.txt .env