flow validate
flow validate
lets you validate a series of commands contained in one or more stages, as configured in a Liquibase flow file. It is is similar to the validate
command. It checks your flow file and identifies any possible errors that may cause the flow
command to fail. This command is available in Liquibase 4.15.0 and later.
Uses
Use the flow validate
command to ensure:
- The YAML is structured correctly
- Referenced files can be found
- Referenced commands and parameters are valid
Note: The flow validate
command only looks for possible errors in the flow file. It does not check for possible errors that might result from running the flow file on a specific database.
Syntax
To run the flow validate
command, specify the driver, classpath, and URL in Liquibase properties file. For more information, see Create and Configure a liquibase.properties File. You can also specify these properties in your command line.
Then run the flow validate
command:
liquibase flow validate
Parameters
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Definition | Requirement |
---|---|---|
|
The path to the configuration YAML file which
contains one or more "stages" of commands to be
executed in a |
Optional |
|
If true, parse flow file YAML to allow only Liquibase flow file-specific properties, indentations, and
structures.
Default: |
Optional |
|
The default interpreter used to execute shell
commands. Examples include |
Optional |
|
If true, do not delete temporary files created by the shell
command execution.
Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Definition | Requirement |
---|---|---|
|
The path to the configuration YAML file which
contains one or more "stages" of commands to be
executed in a |
Optional |
|
If true, parse flow file YAML to allow only Liquibase flow file-specific properties, indentations, and
structures.
Default: |
Optional |
|
The default interpreter used to execute shell
commands. Examples include |
Optional |
|
If true, do not delete temporary files created by the shell
command execution.
Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Definition | Requirement |
---|---|---|
|
The path to the configuration YAML file which
contains one or more "stages" of commands to be
executed in a |
Optional |
|
If true, parse flow file YAML to allow only Liquibase flow file-specific properties, indentations, and
structures.
Default: |
Optional |
|
The default interpreter used to execute shell
commands. Examples include |
Optional |
|
If true, do not delete temporary files created by the shell
command execution.
Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Definition | Requirement |
---|---|---|
|
The path to the configuration YAML file which
contains one or more "stages" of commands to be
executed in a |
Optional |
|
If true, parse flow file YAML to allow only Liquibase flow file-specific properties, indentations, and
structures.
Default: |
Optional |
|
The default interpreter used to execute shell
commands. Examples include |
Optional |
|
If true, do not delete temporary files created by the shell
command execution.
Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Definition | Requirement |
---|---|---|
|
The path to the configuration YAML file which
contains one or more "stages" of commands to be
executed in a |
Optional |
|
If true, parse flow file YAML to allow only Liquibase flow file-specific properties, indentations, and
structures.
Default: |
Optional |
|
The default interpreter used to execute shell
commands. Examples include |
Optional |
|
If true, do not delete temporary files created by the shell
command execution.
Default: |
Optional |
Output
Flow file liquibase.flowfile.yaml is valid.
Liquibase command 'flow validate' was executed successfully.