---
title: root
sidebarTitle: root
---

# `prefect.cli.root`



Base `prefect` command-line application


## Functions

### `version_callback` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L28" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
version_callback(value: bool) -> None
```

### `is_interactive` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L34" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
is_interactive() -> bool
```

### `main` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L40" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
main(ctx: typer.Context, version: bool = typer.Option(None, '--version', '-v', callback=version_callback, help='Display the current version.', is_eager=True), profile: str = typer.Option(None, '--profile', '-p', help='Select a profile for this CLI run.', is_eager=True), prompt: bool = SettingsOption(prefect.settings.PREFECT_CLI_PROMPT, help='Force toggle prompts for this CLI run.'))
```

### `version` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L95" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
version(omit_integrations: bool = typer.Option(False, '--omit-integrations', help='Omit integration information'))
```


Get the current Prefect version and integration information.


### `get_prefect_integrations` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L158" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
get_prefect_integrations() -> dict[str, str]
```


Get information about installed Prefect integrations.


### `display` <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/root.py#L177" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python
display(object: dict[str, Any], nesting: int = 0) -> None
```


Recursive display of a dictionary with nesting.

