Log into cdswctl

This topic describes how to log into cdswctl.

  1. Open the Model CLI client.
  2. Run the following command while specifying the actual values for the variables:
    cdswctl login -u <workbench_url> -n <username> -y <legacy_api_key>
    where
    • workbench_url is the workbench URL including the protocol (http(s)://domain.com)
    • username is your user name on the workbench
    • legacy_api_key is the API key that you can obtain from the Cloudera AI UI. Go to Settings > API Keys and copy the Legacy API Key (and not the API Key).
    To see more information about the login command parameters, run
    cdswctl login --help
    If all goes well, then "Login succeeded" displays.