register(module_name: Optional[str] = typer.Option(None, '--module', '-m', help='Python module containing block types to be registered'), file_path: Optional[Path] = typer.Option(None, '--file', '-f', help='Path to .py file containing block types to be registered'))
Register blocks types within a module or file.This makes the blocks available for configuration via the UI.
If a block type has already been registered, its registration will be updated to
match the block’s current definition.
Examples:
Register block types in a Python module:
prefect block register -m prefect_aws.credentials
Register block types in a .py file:
prefect block register -f my_blocks.py
block_inspect(slug: Optional[str] = typer.Argument(None, help='A Block slug: <BLOCK_TYPE_SLUG>/<BLOCK_NAME>'), block_id: Optional[UUID] = typer.Option(None, '--id', help='A Block id to search for if no slug is given'))