Skip to content

template is not created in working directory #461

@gerard76

Description

@gerard76

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions