Liquibase Parameters for MongoDB
You can control the way Liquibase behaves when running commands on your MongoDB database by setting Liquibase parameters. For example, you can use them to configure OIDC authentication on MongoDB Atlas.
For a list of general Liquibase parameters, see Liquibase Parameters.
For more information about MongoDB, see Using Liquibase MongoDB Pro with MongoDB platforms.
Note: Syntax for each parameter is specified in kebab-case
(CLI and flow file), camelCase
(properties file and JAVA_OPTS
), and MACRO_CASE
(environment variable).
Tip: For best results, specify all commands and parameters in the --kebab-case
format in the CLI. If your preference is camelCase, it also works in the CLI.
Name ( | Type | Description |
--mongodb-adjust-tracking-tables-on-startup globalArgs: {adjust-tracking-tables-on-startup: "val"} liquibase.mongodb.adjustTrackingTablesOnStartup LIQUIBASE_MONGODB_ADJUST_TRACKING_TABLES_ON_STARTUP Read more: | Boolean | Validates the Liquibase DATABASECHANGELOG and DATABASECHANGELOGLOCK collections on startup. If they are not up to date with the current release, Liquibase adjusts them. It is a best practice to keep this parameter enabled whenever you upgrade to a new Liquibase version. Default: |
--mongodb-oidc-authentication-mechanism globalArgs: {mongodb-oidc-authentication-mechanism: "val"} liquibase.mongodb.oidc.authenticationMechanism LIQUIBASE_MONGODB_OIDC_AUTHENTICATION_MECHANISM Read more: | String | Authentication mechanism for MongoDB. Valid values are: |
--mongodb-oidc-environment globalArgs: {mongodb-oidc-environment: "val"} liquibase.mongodb.oidc.environment LIQUIBASE_MONGODB_OIDC_ENVIRONMENT Read more: | String | Cloud provider environment for OIDC authentication. Valid values are: |
--mongodb-oidc-oidc-application-id-uri globalArgs: {mongodb-oidc-oidc-application-id-uri: "val"} liquibase.mongodb.oidc.oidcApplicationIDURI LIQUIBASE_MONGODB_OIDC_OIDC_APPLICATION_ID_URI Read more: | String | Application ID URI used for OIDC authentication in cloud providers. For example, with Azure: |
--mongodb-oidc-oidc-client-id globalArgs: {mongodb-oidc-oidc-client-id: "val"} liquibase.mongodb.oidc.oidcClientID LIQUIBASE_MONGODB_OIDC_OIDC_CLIENT_ID Read more: | String | Client ID of the User-Assigned Identity for OIDC authentication. |
--mongodb-retry-writes globalArgs: {retry-writes: "val"} liquibase.mongodb.retryWrites LIQUIBASE_MONGODB_RETRY_WRITES Read more: | Boolean | Specifies whether to retry write operations a single time after a failed write. If |
--mongodb-supports-validator globalArgs: {supports-validator: "val"} liquibase.mongodb.supportsValidator LIQUIBASE_MONGODB_SUPPORTS_VALIDATOR Read more: | Boolean | Specifies whether to create the Liquibase tracking collections with validators. Setting this parameter to |