#461·dotenv

template is not created in working directory

Author: gerard76Created Jan 9, 2023Updated Jan 13, 2024

When I create a template from an existing .env file located in another directory as my working directory, the template is not created in my working directory

Steps to reproduce

bash
mkdir temp
echo "setting=123" > temp/.env
dotenv -t temp/.env
cat temp/.env.template

Expected behavior

I expected the .env.template to be created in my current (working) directory and not in the directory of the .env file as per the documentation.

System configuration

dotenv version: dotenv 2.8.1