cdswctl command reference

You can manage your Cloudera AI Workbench cluster with the CLI client (cdswctl) that exists within the Cloudera AI Workbench. Running cdswctl without any arguments prints a brief description of each command.

Table 1. Model CLI Command Reference
Command Description and usage
cdswctl login It enables you to log into the model CLI client.
cdswctl projects list It lists the projects.
cdswctl models create It creates a model with the specified parameters.
cdswctl models list It lists all models.

You can refine the search by specifying the modelId.

cdswctl models listBuild It lists the builds for a model.

You can monitor the status of the build by specifying the modelId and the projectId.

cdswctl models listDeployments It list the deployments for a model.

You can refine the search by specifying the modelId.

Use the statusSet parameter to check the status of the model being deployed.

cdswctl models deploy It deploys a model with the specified parameters.
cdswctl models listReplicas It enables you to view the list of model replicas.

You also need this information to obtain replica logs.

cdswctl models getReplicaLogs It enables you to view the logs for a model replica.
cdswctl models restart

It restarts a model.

Usage:

cdswctl models restart --modelDeploymentId=<deployment_ID>

Note: Running this command does not change the resources if you previously ran the cdswctl models update command.

cdswctl models update It changes the name, description, or visibility of the model.

To change a model’s resources, use the cdswctl models deploy command

cdswctl models delete It deletes a model.

Usage:

cdswctl models delete --id=<model_ID>

cdswctl runtime-addons list It lists Runtime Addons.