--mongosh-keep-temp

Last updated: April 30, 2026

Indicates whether or not to keep a temporary SQL file after the execution of Mongosh. If true, the file is not deleted. This setting is not required to keep the temporary file, only create-spool is. Default: false.

Syntax

You can set this parameter in the following ways:

Option

Syntax

Global CLI parameter

--mongosh-keep-temp=<true|false>

Liquibase properties file (defaults file)

liquibase.mongosh.keep.temp: <true|false>

Global flow file argument (example)

globalArgs: { mongosh-keep-temp: "<true|false>" }

JVM system property (JAVA_OPTS environment variable)

JAVA_OPTS=-Dliquibase.mongosh.keep.temp=<true|false>

Liquibase environment variable

LIQUIBASE_MONGOSH_KEEP_TEMP=<true|false>