> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# cli

# `prefect.settings.models.cli`

## Classes

### `CLISettings` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/models/cli.py#L12](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/models/cli.py#L12)</sup>

Settings for controlling CLI behavior

**Methods:**

#### `settings_customise_sources` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/base.py#L33](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/base.py#L33)</sup>

```python theme={null}
settings_customise_sources(cls, settings_cls: type[BaseSettings], init_settings: PydanticBaseSettingsSource, env_settings: PydanticBaseSettingsSource, dotenv_settings: PydanticBaseSettingsSource, file_secret_settings: PydanticBaseSettingsSource) -> tuple[PydanticBaseSettingsSource, ...]
```

Define an order for Prefect settings sources.

The order of the returned callables decides the priority of inputs; first item is the highest priority.

See [https://docs.pydantic.dev/latest/concepts/pydantic\_settings/#customise-settings-sources](https://docs.pydantic.dev/latest/concepts/pydantic_settings/#customise-settings-sources)

#### `to_environment_variables` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/base.py#L124](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings/base.py#L124)</sup>

```python theme={null}
to_environment_variables(self, exclude_unset: bool = False, include_secrets: bool = True, include_aliases: bool = False) -> dict[str, str]
```

Convert the settings object to a dictionary of environment variables.
