Back to Prefect

Dev

docs/v3/api-ref/cli/dev.mdx

3.7.9.dev53.5 KB
Original Source

prefect dev

command
prefect dev [OPTIONS] COMMAND [ARGS]...
<Info> Internal Prefect development. </Info>

prefect dev build-docs

command
prefect dev build-docs [OPTIONS] [SCHEMA_PATH]
<Info> Builds REST API reference documentation for static display. </Info> <AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="SCHEMA_PATH" type="string"> </ResponseField> </Accordion> </AccordionGroup>

prefect dev build-ui

command
prefect dev build-ui [OPTIONS]
<Info> Installs dependencies and builds UI locally. Requires npm. </Info> <AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--no-install"> Skip installing npm dependencies before building. </ResponseField> <ResponseField name="--include-v2"> Also build the React UI v2 bundle into the Prefect package. </ResponseField> </Accordion> </AccordionGroup>

prefect dev ui

command
prefect dev ui [OPTIONS]
<Info> Starts a hot-reloading development UI. </Info>

prefect dev api

command
prefect dev api [OPTIONS]
<Info> Starts a hot-reloading development API. </Info> <AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--host"> API host address. </ResponseField> <ResponseField name="--port"> API port number. </ResponseField> <ResponseField name="--log-level"> Log level for the server. </ResponseField> <ResponseField name="--services/--no-services"> Run services in app. </ResponseField> </Accordion> </AccordionGroup>

prefect dev start

command
prefect dev start [OPTIONS]
<Info> Starts a hot-reloading development server with API, UI, and agent processes. </Info> <AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--no-api"> Exclude the API service. </ResponseField> <ResponseField name="--no-ui"> Exclude the UI service. </ResponseField> </Accordion> </AccordionGroup>

prefect dev build-image

command
prefect dev build-image [OPTIONS]
<Info> Build a docker image for development. </Info> <AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--arch"> The architecture to build the container for. Defaults to the architecture of the host Python. [default: x86_64] </ResponseField> <ResponseField name="--python-version"> The Python version to build the container for. Defaults to the version of the host Python. </ResponseField> <ResponseField name="--flavor"> An alternative flavor to build, for example 'conda'. Defaults to the standard Python base image </ResponseField> <ResponseField name="--build-arg"> This will directly pass a --build-arg into the docker build process. Can be added to the command line multiple times. </ResponseField> <ResponseField name="--dry-run"> Print the command instead of running. </ResponseField> </Accordion> </AccordionGroup>

prefect dev container

command
prefect dev container [OPTIONS]
<Info> Run a docker container with local code mounted and installed. </Info> <AccordionGroup> <Accordion title="Options" defaultOpen> <ResponseField name="--bg"> Run in background. </ResponseField> <ResponseField name="--name"> Container name. </ResponseField> <ResponseField name="--api/--no-api"> Start API in container. </ResponseField> <ResponseField name="--tag"> Docker image tag. </ResponseField> </Accordion> </AccordionGroup>