Create a deployment
gradient deployments create \
--name "New Deployment" \
--projectId "prjpkflqz" \
--spec "deployment-spec.yaml"
Name | Type | Attributes | Description |
---|---|---|---|
--name |
string | required | Deployment name |
--projectId |
string | required | Project ID |
--spec |
string | required | Path to a deployment spec file |
--clusterId |
string | optional | Cluster ID |
--apiKey |
string | optional | API key to use this time only |
Created deployment: 3ba79e98-0ead-42d1-9a8d-caa01dffe11b
Get a deployment
gradient deployments get \
--id "3b093c22-ebe8-4316-a9ff-90cac17ef6cf"
Name | Type | Attributes | Description |
---|---|---|---|
--id |
string | required | Deployment ID |
--apiKey |
string | optional | API key to use this time only |
{
"id": "3b093c22-ebe8-4316-a9ff-90cac17ef6cf",
"name": "New Deployment",
"deploymentSpecs": [
{
"id": "dd8b8f94-86e7-44e4-aa94-411b978ff523",
"data": {
"image": "lucone83/streamlit-nginx",
"port": 8080,
"resources": {
"instanceType": "C4",
"replicas": 1
},
"command": null,
"env": [
{
"name": "ENV",
"value": "VAR"
}
],
"models": null
},
"endpointUrl": "d3b093c22ebe84316a9ff90cac17ef6cf.clg07azjl.paperspacegradient.com",
"actor": {
"avatarUrl": null,
"fullName": null
},
"cluster": {
"id": "clg07azjl"
},
"deploymentRuns": [
{
"id": "68d3ea2a-1b3a-4cb1-9bdd-a71dac724cb9",
"availableReplicas": 1,
"readyReplicas": 1,
"replicas": 1,
"deploymentRunInstances": [
{
"id": "f59d4292-4bf0-41be-a7c9-29494b5a5c1c",
"phase": "Running",
"dtStarted": "2022-03-15T01:04:18.000Z",
"dtFinished": null
}
]
}
]
}
]
}
List deployments
gradient deployments list
Name | Type | Attributes | Description |
---|---|---|---|
--apiKey |
string | optional | API key to use this time only |
+----------------+--------------------------------------+
| Name | ID |
+----------------+--------------------------------------+
| New Deployment | 3b093c22-ebe8-4316-a9ff-90cac17ef6cf |
+----------------+--------------------------------------+
Update a deployment
gradient deployments update \
--id "3b093c22-ebe8-4316-a9ff-90cac17ef6cf" \
--name "New Deployment Name"
Name | Type | Attributes | Description |
---|---|---|---|
--id |
string | required | Deployment ID |
--name |
string | optional | Deployment name |
--projectId |
string | optional | Project ID |
--clusterId |
string | optional | Cluster ID |
--spec |
string | optional | Path to a deployment spec file |
--apiKey |
string | optional | API key to use this time only |
Updated deployment: 3b093c22-ebe8-4316-a9ff-90cac17ef6cf
Delete a deployment
gradient deployments delete \
--id "3b093c22-ebe8-4316-a9ff-90cac17ef6cf"
Name | Type | Attributes | Description |
---|---|---|---|
--id |
string | required | Deployment ID |
--apiKey |
string | optional | API key to use this time only |
Deleted deployment: 3b093c22-ebe8-4316-a9ff-90cac17ef6cf