collective.html2blocks.cli#
CLI entry point for collective.html2blocks.
This module provides the Typer-based command-line interface for converting HTML content to Volto blocks, inspecting conversion info, and running the API server.
Example
uv run html2blocks convert input.html
uv run html2blocks info
uv run html2blocks server
- collective.html2blocks.cli.cli()[source]#
Run the collective.html2blocks CLI application.
This function serves as the entry point for the CLI, invoking the Typer app.
Example
>>> cli() # Launches the CLI
- collective.html2blocks.cli.main(ctx: Context)[source]#
Main CLI callback for
collective.html2blocks.This function is invoked when the CLI is run without a subcommand. It displays a welcome message and help information for available commands.
- Parameters:
ctx (typer.Context) -- Typer context object.
Example
$ uv run html2blocks Welcome to collective.html2blocks.