Skip to content

Install and Upgrade DKCloudCommand

Use pip3 to install the Automation command line interface (CLI).

For best results, and to avoid Python package conflicts, install DKCloudCommand in a separate, virtual environment. See DKCloudCommand for more details on virtual environments.

Note

DKCloudCommand installation: You can find the installation files on PyPI . Note, DKCloudCommand is best installed via pip3. Pip3 is already installed if you use Python 3 (version >=3.6).

Install the CLI

Prerequisites

Account credentials are provided to you by email. If you have problems with your login, contact DataKitchen support.

How to

Run the following:

pip3 install DKCloudCommand

Upgrade the CLI

Upgrading DKCloudCommand is optional and manual.

A new version of DKCloudCommand is released with every Automation release. Best practice is to stay up-to-date with the Automation Release Notes and to update DKCloudCommand regularly.

Confirm the current version

Note

CLI is case-sensitive: Use lowercase commands with the DKCloudCommand interface. The CLI is case-sensitive, even if your instance of shell is not.

Confirm the version that is currently installed:

dk --version

Output: dk command with version option when DKCloudCommand is up to date.

dk, version 1.1.XYZ

Upgrade using pip3

Use pip3 to upgrade DKCloudCommand:

pip3 install DKCloudCommand --upgrade

Output: dk command with upgrade option

Collecting DKCloudCommand
  Downloading DKCloudCommand-1.1.XYZ-py2.py3-none-any.whl (90 kB)
. . .
Installing collected packages: DKCloudCommand
  Attempting uninstall: DKCloudCommand
    Found existing installation: DKCloudCommand 1.1.abc
    Uninstalling DKCloudCommand-1.1.abc:
      Successfully uninstalled DKCloudCommand-1.1.abc
Successfully installed DKCloudCommand-1.1.XYZ

Additional MacOS step

After you complete your DKCloudCommand install or upgrade, run the following command, substituting the appropriate Python version. This code runs a pip command that validates and updates certificates.

/Applications/Python\\ 3.8/Install\\ Certificates.command

Deprecated version warning message

You will receive a warning message if you input a command using a deprecated version of DKCloudCommand.

Output: dk command with version option for an older version of the command line

***********************************************************************************

 Warning !!!

 Your command line is out of date, new version 1.1.XYZ is available. Please update.

 Type "pip3 install DKCloudCommand --upgrade" to upgrade.

***********************************************************************************

Troubleshooting: Resolve DKCloudCommand SSL Errors