prefect.cli.root

Base prefect command-line application

Functions

version_callback

version_callback(value: bool) -> None

is_interactive

is_interactive() -> bool

main

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

version(omit_integrations: bool = typer.Option(False, '--omit-integrations', help='Omit integration information'))
Get the current Prefect version and integration information.

get_prefect_integrations

get_prefect_integrations() -> dict[str, str]
Get information about installed Prefect integrations.

display

display(object: dict[str, Any], nesting: int = 0) -> None
Recursive display of a dictionary with nesting.