# install the CLIpip install cortex​# create a clustercortex cluster up cluster.yaml
​Client installation - customize your client installation.
​Cluster configuration - optimize your cluster for your workloads.
​Environments - manage multiple clusters.
# deploy machine learning APIscortex deploy apis.yaml
​RealtimeAPI - create HTTP/gRPC APIs that respond to prediction requests in real-time.
​AsyncAPI - create APIs that respond to prediction requests asynchronously.
​BatchAPI - create APIs that run distributed batch inference jobs.
​TaskAPI - create APIs that run training or fine-tuning jobs.