Command Line Interface
Integrate SnowConvert for Amazon Redshift into your CI/CD process with the CLI version of the tool
To execute a conversion with the SnowConvert CLI you have to have an active license. If you already have a license for the UI you should be able to reuse the same license key. In the section below we show how to install a license key.
There are several Command Line Arguments documented below, but the main ones are
-ifor the input folder and
-ofor the output folder.
To install a license key just execute SnowConvert CLI program with the
-largument and the license key.
$: snowct -l 137c88fg-a91a-4v55-yabd-601e383d45ce
To know the status of the license just execute SnowConvert CLI program with just the
-land no other arguments.
$: snowct -l
To migrate a folder just execute SnowConvert CLI program with the
-i <INPUT FOLDER>and
-o <OUTPUT FOLDER>arguments.
$: snowct -i ~/Documents/Workspace/Code -o ~/Documents/Workspace/Output
The path to the folder or file containing the input source code.
The path to the output folder where the converted code and reports will be stored.
Flag to indicate whether or not to generate only Assessments files. By default, it's set to FALSE.
Flag to indicate if user wants to comment nodes that have missing dependencies.
String value specifying the custom schema name to apply. If not specified, either PUBLIC or the original database name will be used. Example: DB1.MyCustomSchema.Table1.
If you provide this parameter with a schema named NONE
--customschema none, the converted code will keep the original schema defined in the source code.
String value specifying the custom database name to apply. Example: MyCustomDB.PUBLIC.Table1.
Shows the license information. If it's followed by a license key, it will attempt to download and install such a license. For example:
- Showing license status
- Installing a license
snowct -l 12345-ASDFG-67890
Show license terms information.
Display the help information.
Flag to indicate whether EWIs comments (Errors, Warnings, and Issues) will be generated on the converted code. Default is false.
Flag to indicate the path where the additional translation rules are located.