create
Note: This is a Liquibase Pro feature, so you need a Liquibase Pro License Key to use it.
The create
subcommand allows you to create a new YAML checks package file. Learn more about Checks packages here: Quality Checks Packages. It is available in Liquibase 4.25.0 and later.
Uses
Using the create
subcommand alongside the checks command creates a new yaml checks package file. This checks package file contains any Quality Check you would like to include so that you can run a bundle of checks at once rather than one at a time.
Note: To view a list of available checks, run liquibase checks show
.
Syntax
- To create a checks package, you must have at least one checks settings file. You can create one by running any quality check command and following the prompt instructions:
- Run the
checks create
command to create a new YAML checks package file. For example: - A package file called
security-checks.pkg
- A package object inside the file called
liquibase.package.conf
- The contents of the package object, a checks settings file called
liquibase.checks-settings.conf
.
liquibase checks show
When successful, Liquibase displays the following message along with the output of the command you ran:
liquibase.checks-settings.conf successfully created!
liquibase checks create --package-contents=liquibase.checks-settings.conf --package-name=liquibase.package.conf --package-file=security-checks.pkg
This results in:
Parameters
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
The name of the checks package object inside the file to be created. |
Required |
|
The file(s) or directory to include in the checks package object |
Required |
|
The file name of the YAML file to create. Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
The name of the checks package object inside the file to be created. |
Required |
|
The file(s) or directory to include in the checks package object |
Required |
|
The file name of the YAML file to create. Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
The name of the checks package object inside the file to be created. |
Required |
|
The file(s) or directory to include in the checks package object |
Required |
|
The file name of the YAML file to create. Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
The name of the checks package object inside the file to be created. |
Required |
|
The file(s) or directory to include in the checks package object |
Required |
|
The file name of the YAML file to create. Default: |
Optional |
Global parameters
Attribute | Definition | Requirement |
---|---|---|
|
Your Liquibase Pro license key |
Required |
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
The name of the checks package object inside the file to be created. |
Required |
|
The file(s) or directory to include in the checks package object |
Required |
|
The file name of the YAML file to create. Default: |
Optional |
Output
INFO: SUCCESS! 'security-checks.pkg' was created, and the specified file at 'liquibase.checks-settings.conf' were added to new checks package named 'liquibase.package.conf'. Use this checks package with 'liquibase checks show --checks-settings-file=security-checks.pkg --checks-packages=liquibase.package.conf'
Liquibase command 'checks create' was executed successfully.