--project-dir

Last updated: April 30, 2026

An optional parameter used to specify the directory containing files (existing or to be auto-created) to be used with Liquibase. Default: ./.

Syntax

You can set this parameter in the following ways:

Option

Syntax

Command CLI parameter

--project-dir=<string>

Liquibase properties file (defaults file)

liquibase.command.init.project.projectDir: <string>

Command flow file argument (example)

cmdArgs: { project-dir: "<string>" }

JVM system property (JAVA_OPTS environment variable)

JAVA_OPTS=-Dliquibase.command.init.project.projectDir=<string>

Liquibase environment variable

LIQUIBASE_COMMAND_INIT_PROJECT_PROJECT_DIR=<string>