--mongosh-args

Last updated: April 30, 2026

Defines extra arguments to pass to the mongosh executable. For more information, see Mongosh documentation. Note: The delimiter for arguments is a space " ". Do not use a comma "," or semicolon ";".

Syntax

You can set this parameter in the following ways:

Option

Syntax

Global CLI parameter

--mongosh-args=<string>

Liquibase properties file (defaults file)

liquibase.mongosh.args: <string>

Global flow file argument (example)

globalArgs: { mongosh-args: "<string>" }

JVM system property (JAVA_OPTS environment variable)

JAVA_OPTS=-Dliquibase.mongosh.args=<string>

Liquibase environment variable

LIQUIBASE_MONGOSH_ARGS=<string>