docs/v3/api-ref/python/prefect-cli-work_pool.mdx
prefect.cli.work_poolWork pool command — native cyclopts implementation.
Manage work pools.
create <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L297" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>create(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool.')])
Create a new work pool or update an existing one.
ls <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L505" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>ls()
List work pools.
inspect <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L584" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>inspect(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to inspect.')])
Inspect a work pool.
slots <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L622" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>slots(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool.')])
Show concurrency slot utilization for a work pool.
pause <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L731" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>pause(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to pause.')])
Pause a work pool.
resume <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L755" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>resume(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to resume.')])
Resume a work pool.
update <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L779" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>update(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')])
Update a work pool.
provision_infrastructure_cmd <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L843" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>provision_infrastructure_cmd(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to provision infrastructure for.')])
Provision infrastructure for a work pool.
delete <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L909" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>delete(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to delete.')])
Delete a work pool.
set_concurrency_limit <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L937" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>set_concurrency_limit(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')], concurrency_limit: Annotated[int, cyclopts.Parameter(help='The new concurrency limit for the work pool.')])
Set the concurrency limit for a work pool.
clear_concurrency_limit <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L966" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>clear_concurrency_limit(name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to update.')])
Clear the concurrency limit for a work pool.
get_default_base_job_template <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L990" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>get_default_base_job_template()
Get the default base job template for a given work pool type.
preview <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L1034" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>preview(name: Annotated[Optional[str], cyclopts.Parameter(help='The name or ID of the work pool to preview')] = None)
Preview the work pool's scheduled work for all queues.
storage_inspect <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L1159" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>storage_inspect(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to display storage configuration for.')])
EXPERIMENTAL: Inspect the storage configuration for a work pool.
storage_configure_s3 <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L1309" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>storage_configure_s3(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
EXPERIMENTAL: Configure AWS S3 storage for a work pool.
storage_configure_gcs <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L1443" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>storage_configure_gcs(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
EXPERIMENTAL: Configure Google Cloud storage for a work pool.
storage_configure_azure_blob_storage <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/work_pool.py#L1583" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>storage_configure_azure_blob_storage(work_pool_name: Annotated[str, cyclopts.Parameter(help='The name of the work pool to configure storage for.')])
EXPERIMENTAL: Configure Azure Blob Storage for a work pool.