defaults-file
The --defaults-file
global parameter is a case-sensitive string that specifies the filepath Liquibase uses for the file containing configuration properties to apply. By default, the value of this parameter is liquibase.properties
.
Uses
If you want to use the default liquibase.properties
file to store your configurations, you don't have to specify this parameter.
However, you may want to have multiple defaults files containing different sets of properties or your organization may have a custom naming pattern for configuration files. In these cases, you can use --defaults-file
to set a custom name for the file containing your Liquibase properties. You can also use the parameter to specify a remote file location for your Liquibase properties in Amazon S3.
For more information on the parameters you need to specify to run Liquibase commands, see Create and Configure a liquibase.properties File.
Syntax
You can set this parameter in the following ways:
Option | Syntax |
---|---|
Liquibase properties file (defaults file) |
|
Global flow file argument (example) |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS Environment Variable) |
|
Liquibase Environment Variables |
|
For more information, see Working with Command Parameters.