Quickstart
Install
Section titled “Install”uv add lexigram-cliOr install as a standalone tool:
uv tool install lexigram-cliHello World
Section titled “Hello World”# Verify the CLI is availablelexigram --help
# Scaffold a new projectlexigram new project my-app --template web-apicd my-app
# Start the dev serverlexigram dev --reloadPrimary Import + Provider Wiring
Section titled “Primary Import + Provider Wiring”The CLI can be integrated into a DI container via CLIModule:
from lexigram import Applicationfrom lexigram.cli import CLIModule
app = Application(name="my-app")app.add_module(CLIModule.configure())Or using CLIProvider directly:
from lexigram.cli import CLIConfigfrom lexigram.cli.di.provider import CLIProvider
provider = CLIProvider(config=CLIConfig())app.add_provider(provider)What Just Happened
Section titled “What Just Happened”lexigram new projectscaffolded a complete project structure withpyproject.toml,src/,tests/, andapplication.yamllexigram devauto-detected thecreate_app()factory and launched an ASGI dev server with hot-reloadCLIModule.configure()registers the CLI provider and exportsCLIApplicationProtocol