Each model, sync or connection is defined in a separate
.yml or .yaml file (models can be defined with .sql files as well). Every file can reference environment variables using the ${env.VAR_NAME} syntax.
The project can contain .env and .env.local files. If any of these files exist, Syncmaven will load the environment variables from them (.env.local will override .env).
Environment Variables
Environment variables can be used in the project files. In fact, they must be used for sensitive information like passwords or API keys. In addition to variables passed to a process, Syncmaven will from.envfile in the project root.env.localfile in the project root.envfile in the current working directory.env.localfile in the current working directory- Variables from file specified by
--env-filecommand line argument. It’s possible to specify multiple files by using the--env-fileargument multiple times.