init copy
You can use the init copy
subcommand to copy project files from a source directory to a target directory. It is available in Liquibase 4.6.0 and later.
Uses
Use the copy
subcommand if you have an existing Liquibase project that you want to duplicate, such as testing a specific configuration of changelogs and properties that would be difficult to recreate manually. You can also specify whether you want to recursively copy files within subdirectories of your source directory.
Tip: If you want Liquibase to create a new project for you with default settings and files, use the init project command instead.
Syntax
To run init copy
, type the following into your command line:
init copy --source=<path/to/directory> --target=<path/to/directory> --recursive=<true|false>
Note: The copy
subcommand can be replaced by its alias which is project-clone
.
Example: init project-clone --source=<path/to/directory> --target=<path/to/directory> --recursive=<true|false>
Command parameters
Attribute | Description | Requirement |
---|---|---|
|
Recursively copy files from the source directory. Default: |
Optional |
|
Source directory where the project files will be copied from. Default: |
Optional |
|
Path to the directory where the project files will be created |
Optional |
Attribute | Description | Requirement |
---|---|---|
|
Recursively copy files from the source directory. Default: |
Optional |
|
Source directory where the project files will be copied from. Default: |
Optional |
|
Path to the directory where the project files will be created |
Optional |
Attribute | Description | Requirement |
---|---|---|
|
Recursively copy files from the source directory. Default: |
Optional |
|
Source directory where the project files will be copied from. Default: |
Optional |
|
Path to the directory where the project files will be created |
Optional |
Attribute | Description | Requirement |
---|---|---|
|
Recursively copy files from the source directory. Default: |
Optional |
|
Source directory where the project files will be copied from. Default: |
Optional |
|
Path to the directory where the project files will be created |
Optional |
Attribute | Description | Requirement |
---|---|---|
|
Recursively copy files from the source directory. Default: |
Optional |
|
Source directory where the project files will be copied from. Default: |
Optional |
|
Path to the directory where the project files will be created |
Optional |