Create a Deployment with the Roboflow CLI

You can create, manage, and delete Dedicated Deployments from the Roboflow CLI.

The minimum version supporting this feature is 1.1.41. You can install the CLI using:

pip install roboflow

Once you have installed the CLI, authenticate with:

roboflow login

Create a Dedicated Deployment

To provision a Dedicated Deployment, run:

roboflow deployment add DEPLOYMENT_NAME -m MACHINE_TYPE -t DURATION -w WAIT_ON_PENDING -e NO_DELETE_ON_EXPIRATION -v INFERENCE_VERSION

Above, replace:

  • DEPLOYMENT_NAME: deployment name, 5~15 lower case alphanumeric characters and dash (a-z, 0-9, -), the first character must be a letter (a-z), must be unique within your workspace.

  • MACHINE_TYPE: machine type, run roboflow deployment machine_type to get available options.

  • DURATION: how long you want this deployment to be active (unit: hour), must be within 0.1~6, the default value is 3.

  • WAIT_ON_PENDING: wait for the deployment to be ready (or failed), default is false.

  • NO_DELETE_ON_EXPIRATION: not delete the deployment when expired, default is false.

  • INFERENCE_VERSION: version of the inference server docker image, must be 0.16.0 or above. See available options at docker hub for cpu and gpu deployments.

List Dedicated Deployments

To list all Dedicated Deployments associated with your Roboflow Workspace, run:

roboflow deployment list

Check Dedicated Deployment Status

To check the status of a Dedicated Deployment, run

roboflow deployment get DEPLOYMENT_NAME -w WAIT_ON_PENDING

Above, set:

  • DEPLOYMENT_NAME: deployment name.

  • WAIT_ON_PENDING: wait for the deployment to be ready (or failed), default is false.

This command will return information such as:

  • The URL associated with your Dedicated Deployment;

  • The status of the Deployment, and;

  • The instance type.

Delete a Dedicated Deployment

You can delete a Dedicated Deployment at any time. You cannot recover deleted deployments.

To delete a Deployment, run:

roboflow deployment delete DEPLOYMENT_NAME

Above, replace:

  • DEPLOYMENT_NAME: deployment name.

Last updated