--mongosh-path

Last updated: April 30, 2026

Path to mongosh executable. For example: Linux: /usr/bin/mongosh or /usr/local/bin/mongosh | Windows: C:\Program Files\MongoDB\Server\6.0\bin\mongosh.exe

Syntax

You can set this parameter in the following ways:

Option

Syntax

Global CLI parameter

--mongosh-path=<string>

Liquibase properties file (defaults file)

liquibase.mongosh.path: <string>

Global flow file argument (example)

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

JVM system property (JAVA_OPTS environment variable)

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

Liquibase environment variable

LIQUIBASE_MONGOSH_PATH=<string>