Skip to content

appendToEnvFile

appendToEnvFile(filePath, variables, log?): void

Defined in: packages/simply-cicd-core/src/env.ts:28

Appends key-value pairs to a .env style file. If the file exists and its content doesn’t end with a newline, a leading newline is added before appending. Creates the file if it doesn’t exist.

string

Record<string, string | undefined>

EnvLogger

void