We provide a client library to programmatically interact with CentML Platform either through command line or using Python SDK.

Use the following command to install centml client.

pip install centml

Run the following command to login to CentML using the client credentials.

centml login

The first time, you’ll be prompted to download the credentials from the CentML Platform console under Accounts -> Credentials.

Run the login command again with the downloaded credential file.

centml login <path_to>/credentials.json

Once logged in, you are all set to use CentML client. You can use centml CLI command to list your deployments.

centml cluster ls

# Alternatively, as a shorthand
ccluster ls

Checkout other supported commands,

ccluster --help
Usage: ccluster [OPTIONS] COMMAND [ARGS]...

  CentML cluster CLI tool

Options:
  --help  Show this message and exit.

Commands:
  delete  Delete a deployment
  get     Get deployment details
  ls      List all deployments
  pause   Pause a deployment
  resume  Resume a deployment

To logout, use the following command.

centml logout