docs/v3/api-ref/cli/deployment.mdx
prefect deploymentprefect deployment [OPTIONS] COMMAND [ARGS]...
prefect deployment inspectprefect deployment inspect [OPTIONS] NAME
$ prefect deployment inspect "hello-world/my-deployment"
{
'id': '610df9c3-0fb4-4856-b330-67f588d20201',
'created': '2022-08-01T18:36:25.192102+00:00',
'updated': '2022-08-01T18:36:25.188166+00:00',
'name': 'my-deployment',
'description': None,
'flow_id': 'b57b0aa2-ef3a-479e-be49-381fb0483b4e',
'schedules': None,
'parameters': {'name': 'Marvin'},
'tags': ['test'],
'parameter_openapi_schema': {
'title': 'Parameters',
'type': 'object',
'properties': {
'name': {
'title': 'name',
'type': 'string'
}
},
'required': ['name']
},
'storage_document_id': '63ef008f-1e5d-4e07-a0d4-4535731adb32',
'infrastructure_document_id': '6702c598-7094-42c8-9785-338d2ec3a028',
'infrastructure': {
'type': 'process',
'env': {},
'labels': {},
'name': None,
'command': ['python', '-m', 'prefect.engine'],
'stream_output': True
}
}
prefect deployment lsprefect deployment ls [OPTIONS]
prefect deployment runprefect deployment run [OPTIONS] [NAME]
The flow run will be scheduled to run immediately unless --start-in or --start-at is specified.
The flow run will not execute until a worker starts.
To watch the flow run until it reaches a terminal state, use the --watch flag.
</Info>
prefect deployment deleteprefect deployment delete [OPTIONS] [NAME]
$ prefect deployment delete test_flow/test_deployment
$ prefect deployment delete --id dfd3e220-a130-4149-9af6-8d487e02fea6
prefect deployment scheduleprefect deployment schedule [OPTIONS] COMMAND [ARGS]...
prefect deployment schedule createprefect deployment schedule create [OPTIONS] NAME
prefect deployment schedule deleteprefect deployment schedule delete [OPTIONS] DEPLOYMENT_NAME SCHEDULE_ID
prefect deployment schedule pauseprefect deployment schedule pause [OPTIONS] [DEPLOYMENT_NAME] [SCHEDULE_ID]
Pause a specific schedule: $ prefect deployment schedule pause my-flow/my-deployment abc123-...
Pause all schedules: $ prefect deployment schedule pause --all </Note>
prefect deployment schedule resumeprefect deployment schedule resume [OPTIONS] [DEPLOYMENT_NAME] [SCHEDULE_ID]
Resume a specific schedule: $ prefect deployment schedule resume my-flow/my-deployment abc123-...
Resume all schedules: $ prefect deployment schedule resume --all </Note>
prefect deployment schedule lsprefect deployment schedule ls [OPTIONS] DEPLOYMENT_NAME
prefect deployment schedule clearprefect deployment schedule clear [OPTIONS] DEPLOYMENT_NAME