> ## Documentation Index
> Fetch the complete documentation index at: https://prefect-bd373955-codex-docket-background-task-ha.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# `prefect dev`

```command theme={null}
prefect dev [OPTIONS] COMMAND [ARGS]...
```

<Info>
  Internal Prefect development.
</Info>

## `prefect dev build-docs`

```command theme={null}
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" />
  </Accordion>
</AccordionGroup>

## `prefect dev build-ui`

```command theme={null}
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 theme={null}
prefect dev ui [OPTIONS]
```

<Info>
  Starts a hot-reloading development UI.
</Info>

## `prefect dev api`

```command theme={null}
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 theme={null}
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 theme={null}
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 theme={null}
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>
