@mikeyt23/node-cli-utils
    Preparing search index...

    Function copyNewEnvValues

    • Copy entries from a source .env file to a destination .env file for which the destination .env file does not already have entries.

      If the destination directory does not exist, a message will be logged and no other action will be taken. Alternatively, to throw an exception when the destination directory does not exist, set the CopyEnvOptions.throwIfDestinationDirectoryMissing option to true.

      If the destination .env file does not exist, it will be created and populated with the source .env file's values.

      This is useful for copying values from a .env.template file to a root .env file.

      For copying root .env files to other locations, use overwriteEnvFile.

      Parameters

      • sourcePath: string

        The path to the source .env file such as a .env.template file (use overwriteEnvFile for copying root .env files to other locations)

      • destinationPath: string

        The path to the destination .env file, such as the root .env file

      • Optionaloptions: Partial<CopyEnvOptions>

        Optional CopyEnvOptions options.

      Returns Promise<void>