> ## 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 shell`

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

<Info>
  Serve and watch shell commands as Prefect flows.
</Info>

## `prefect shell watch`

```command theme={null}
prefect shell watch [OPTIONS] COMMAND
```

<Info>
  Execute a shell command and observe it as a Prefect flow.
</Info>

<AccordionGroup>
  <Accordion title="Arguments" defaultOpen>
    <ResponseField name="COMMAND" type="string" required />
  </Accordion>

  <Accordion title="Options" defaultOpen>
    <ResponseField name="--log-output">
      Log output to Prefect.
    </ResponseField>

    <ResponseField name="--flow-run-name">
      Name of the flow run.
    </ResponseField>

    <ResponseField name="--flow-name">
      Name of the flow.
    </ResponseField>

    <ResponseField name="--stream-stdout">
      Stream output.
    </ResponseField>

    <ResponseField name="--tag">
      Tags for the flow run (repeatable).
    </ResponseField>
  </Accordion>
</AccordionGroup>

## `prefect shell serve`

```command theme={null}
prefect shell serve [OPTIONS] COMMAND
```

<Info>
  Create and serve a deployment that runs a shell command.
</Info>

<AccordionGroup>
  <Accordion title="Arguments" defaultOpen>
    <ResponseField name="COMMAND" type="string" required />
  </Accordion>

  <Accordion title="Options" defaultOpen>
    <ResponseField name="--flow-name">
      Name of the flow.
    </ResponseField>

    <ResponseField name="--deployment-name">
      Name of the deployment.
    </ResponseField>

    <ResponseField name="--tag">
      Deployment tags (repeatable).
    </ResponseField>

    <ResponseField name="--stream-stdout">
      Stream output.
    </ResponseField>

    <ResponseField name="--cron-schedule">
      Cron schedule.
    </ResponseField>

    <ResponseField name="--timezone">
      Timezone for the schedule.
    </ResponseField>

    <ResponseField name="--concurrency-limit">
      Max concurrent flow runs.
    </ResponseField>

    <ResponseField name="--run-once">
      Run once instead of forever.
    </ResponseField>
  </Accordion>
</AccordionGroup>
