Getting Started with LIFT CLI
About this task
Before proceeding, ensure you have an active Db2 Warehouse SaaS instance. If you have an instance, you're all set! If not, create an instance on Db2 Warehouse SaaS.
Procedure
- Download the version of the Lift CLI for your operating system.
- Unzip the package to a
<zip-extract-directory>directory on your hard drive. - To install the Lift CLI, open a terminal window (macOS or Linux) or command prompt
(Windows), and navigate to the
<zip-extract-directory>directory. Install the Lift CLI by running the following command:% <zip-extract-directory>/install <lift-home>For example:
On Linux:$ sudo <zip-extract-directory>/install /opt/lift-cliOn macOS:% sudo <zip-extract-directory>/install /opt/lift-cliOn Windows:> <zip-extract-directory>\install.bat C:\lift-cliThe lift command executable is located in the
<lift-home>/bin. After the installation completes, add the<lift-home>/binto yourPATHenvironment variable. For the rest of this tutorial, we assume that<lift-home>/binis in yourPATHand that the lift command is accessible from your terminal.Tip: The lift command can be run by using a properties file to include settings for command options, such as login credentials, and you can reference that file from within the command by using the
–-properties_fileor-pfoption. The following is an example of a lift extract command that specifies to use a properties file:% lift extract --properties-file <path-to-properties-file>The following example shows the format within a properties file that contains login credentials:source-user=user1 source-password=pass1 target-user=user1 target-password=pass1 max-load-errors=500CONTINUE WITH A CHOSEN MIGRATION PATH: