Skip to content
GitHub

Quickstart

Terminal window
uv add lexigram-cli

Or install as a standalone tool:

Terminal window
uv tool install lexigram-cli
Terminal window
# Verify the CLI is available
lexigram --help
# Scaffold a new project
lexigram new project my-app --template web-api
cd my-app
# Start the dev server
lexigram dev --reload

The CLI can be integrated into a DI container via CLIModule:

from lexigram import Application
from lexigram.cli import CLIModule
app = Application(name="my-app")
app.add_module(CLIModule.configure())

Or using CLIProvider directly:

from lexigram.cli import CLIConfig
from lexigram.cli.di.provider import CLIProvider
provider = CLIProvider(config=CLIConfig())
app.add_provider(provider)
  • lexigram new project scaffolded a complete project structure with pyproject.toml, src/, tests/, and application.yaml
  • lexigram dev auto-detected the create_app() factory and launched an ASGI dev server with hot-reload
  • CLIModule.configure() registers the CLI provider and exports CLIApplicationProtocol
  • Guide — full walkthrough of every CLI command
  • How-Tos — task-oriented recipes