docs/v3/api-ref/cli/work-pool.mdx
prefect work-poolprefect work-pool [OPTIONS] COMMAND [ARGS]...
prefect work-pool createprefect work-pool create [OPTIONS] NAME
Examples: Create a Kubernetes work pool in a paused state: $ prefect work-pool create "my-pool" --type kubernetes --paused Create a Docker work pool with a custom base job template: $ prefect work-pool create "my-pool" --type docker --base-job-template ./base-job-template.json Update an existing work pool: $ prefect work-pool create "existing-pool" --base-job-template ./base-job-template.json --overwrite </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--base-job-template"> The path to a JSON file containing the base job template to use. If unspecified, Prefect will use the default base job template for the given worker type. </ResponseField> <ResponseField name="--paused"> Whether or not to create the work pool in a paused state. </ResponseField> <ResponseField name="-t"> The type of work pool to create. </ResponseField> <ResponseField name="--set-as-default"> Whether or not to use the created work pool as the local default for deployment. </ResponseField> <ResponseField name="--provision-infrastructure"> Whether or not to provision infrastructure for the work pool if supported for the given work pool type. </ResponseField> <ResponseField name="--overwrite"> Whether or not to overwrite an existing work pool with the same name. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool lsprefect work-pool ls [OPTIONS]
Examples: $ prefect work-pool ls </Info>
<AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--verbose"> Show additional information about work pools. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool inspectprefect work-pool inspect [OPTIONS] NAME
Examples: $ prefect work-pool inspect "my-pool" $ prefect work-pool inspect "my-pool" --output json </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to inspect. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--output"> Specify an output format. Currently supports: json </ResponseField> </Accordion> </AccordionGroup>prefect work-pool pauseprefect work-pool pause [OPTIONS] NAME
Examples: $ prefect work-pool pause "my-pool" </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to pause. \[required] </ResponseField> </Accordion> </AccordionGroup>prefect work-pool resumeprefect work-pool resume [OPTIONS] NAME
Examples: $ prefect work-pool resume "my-pool" </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to resume. \[required] </ResponseField> </Accordion> </AccordionGroup>prefect work-pool updateprefect work-pool update [OPTIONS] NAME
Examples: $ prefect work-pool update "my-pool" </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to update. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--base-job-template"> The path to a JSON file containing the base job template to use. If unspecified, Prefect will use the default base job template for the given worker type. If None, the base job template will not be modified. </ResponseField> <ResponseField name="--concurrency-limit"> The concurrency limit for the work pool. If None, the concurrency limit will not be modified. </ResponseField> <ResponseField name="--description"> The description for the work pool. If None, the description will not be modified. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool provision-infrastructureprefect work-pool provision-infrastructure [OPTIONS] NAME
Examples: $ prefect work-pool provision-infrastructure "my-pool"
\$ prefect work-pool provision-infra "my-pool"
prefect work-pool provision-infraprefect work-pool provision-infra [OPTIONS] NAME
Examples: $ prefect work-pool provision-infrastructure "my-pool"
\$ prefect work-pool provision-infra "my-pool"
prefect work-pool deleteprefect work-pool delete [OPTIONS] NAME
Examples: $ prefect work-pool delete "my-pool" </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to delete. \[required] </ResponseField> </Accordion> </AccordionGroup>prefect work-pool set-concurrency-limitprefect work-pool set-concurrency-limit [OPTIONS] NAME CONCURRENCY_LIMIT
Examples: $ prefect work-pool set-concurrency-limit "my-pool" 10 </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to update. \[required] </ResponseField> <ResponseField name="CONCURRENCY_LIMIT" type="string" required> The new concurrency limit for the work pool. \[required] </ResponseField> </Accordion> </AccordionGroup>prefect work-pool clear-concurrency-limitprefect work-pool clear-concurrency-limit [OPTIONS] NAME
Examples: $ prefect work-pool clear-concurrency-limit "my-pool" </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string" required> The name of the work pool to update. \[required] </ResponseField> </Accordion> </AccordionGroup>prefect work-pool get-default-base-job-templateprefect work-pool get-default-base-job-template [OPTIONS]
Examples: $ prefect work-pool get-default-base-job-template --type kubernetes </Info>
<AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="-t"> The type of work pool for which to get the default base job template. </ResponseField> <ResponseField name="-f"> If set, write the output to a file. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool previewprefect work-pool preview [OPTIONS] [NAME]
Examples: $ prefect work-pool preview "my-pool" --hours 24 </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="NAME" type="string"> The name or ID of the work pool to preview </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="-h"> The number of hours to look ahead; defaults to 1 hour </ResponseField> </Accordion> </AccordionGroup>prefect work-pool storageprefect work-pool storage [OPTIONS] COMMAND [ARGS]...
prefect work-pool storage inspectprefect work-pool storage inspect [OPTIONS] WORK_POOL_NAME
$ prefect work-pool storage inspect "my-pool" $ prefect work-pool storage inspect "my-pool" --output json </Note>
prefect work-pool storage configureprefect work-pool storage configure [OPTIONS] COMMAND [ARGS]...
prefect work-pool storage configure s3prefect work-pool storage configure s3 [OPTIONS] WORK_POOL_NAME
Examples: $ prefect work-pool storage configure s3 "my-pool" --bucket my-bucket --aws-credentials-block-name my-credentials </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="WORK_POOL_NAME" type="string" required> The name of the work pool to configure storage for. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--bucket"> The name of the S3 bucket to use. </ResponseField> <ResponseField name="--aws-credentials-block-name"> The name of the AWS credentials block to use. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool storage configure gcsprefect work-pool storage configure gcs [OPTIONS] WORK_POOL_NAME
Examples: $ prefect work-pool storage configure gcs "my-pool" --bucket my-bucket --gcp-credentials-block-name my-credentials </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="WORK_POOL_NAME" type="string" required> The name of the work pool to configure storage for. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--bucket"> The name of the Google Cloud Storage bucket to use. </ResponseField> <ResponseField name="--gcp-credentials-block-name"> The name of the Google Cloud credentials block to use. </ResponseField> </Accordion> </AccordionGroup>prefect work-pool storage configure azure-blob-storageprefect work-pool storage configure azure-blob-storage [OPTIONS] WORK_POOL_NAME
Examples: $ prefect work-pool storage configure azure-blob-storage "my-pool" --container my-container --azure-blob-storage-credentials-block-name my-credentials </Info>
<AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="WORK_POOL_NAME" type="string" required> The name of the work pool to configure storage for. \[required] </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--container"> The name of the Azure Blob Storage container to use. </ResponseField> <ResponseField name="--azure-blob-storage-credentials-block-name"> The name of the Azure Blob Storage credentials block to use. </ResponseField> </Accordion> </AccordionGroup>