CLI Reference
Date: 2026-08-20 Total entries: 73 Packages: 26
Auto-generated by running the actual CLI and scanning pyproject.toml entry points.
Command Tree
Section titled “Command Tree”lexigram├── version Show framework and package versions.├── completion Generate shell completion script.├── list List all available commands.├── test Run project tests.├── lint Run project linting.├── init Initialize Lexigram in existing project├── new Create a new Lexigram project│ └── project Create a new Lexigram project.│ └── package Scaffold a new lexigram-* extension package.│├── add Add a provider to the project├── dev Development server and tools│ └── start Start production server.│├── run Smart runner — auto-detects factory, sets profile├── db Database management commands│ └── init Initialize database migrations.│ └── migrate Generate a new migration file.│ └── create Create a new empty migration file.│ └── upgrade Apply pending migrations.│ └── downgrade Revert migrations.│ └── status Show migration status.│ └── history Show migration history.│ └── validate Validate migrations.│ └── seed Run database seeders.│ └── reset Drop and recreate the database.│ └── shell Open database shell (auto-detects database type).│ └── inspect Show database schema.│ └── backup Backup the database.│ └── restore Restore the database from backup.│ └── setup Run schema setup for all installed packages that need database tables.│├── gen Code generation commands│ └── list List all available generators.│ └── vector_collection Generate a vector collection definition with backend registration│ └── feature_flag Generate a feature flag definition│ └── message_consumer Generate a message consumer with queue routing│ └── storage_driver Generate a file storage backend driver│ └── notification_template Generate a notification template│ └── cache_repo Generate a cache-backed repository with TTL support│ └── search_index Generate a search index with backend registration│ └── repository Generate a database repository with query methods│ └── filter Generate a query filter for database models│ └── seeder Generate a database seeder for test/dev data│ └── health Generate a database health check│ └── model Generate a SQLAlchemy model│ └── service Generate a service with unit of work│ └── controller Generate a web controller with route handlers│ └── resource Generate a RESTful resource with CRUD endpoints│ └── middleware Generate a web middleware component│ └── graphql Generate a GraphQL schema and resolvers│ └── webhook Generate a webhook handler│ └── websocket Generate a WebSocket handler│ └── workflow_def Generate a workflow definition with steps and transitions│ └── pipeline Generate a pipeline with sequential processing stages│ └── saga_step Generate a saga step with compensating transaction│ └── tenant_resolver Generate a custom tenant resolver strategy│ └── document_repo Generate a NoSQL document repository│ └── api_client Generate an external API client│ └── dataloader Generate a GraphQL DataLoaderProtocol to solve N+1 problems│ └── event_handler Generate an event handler with bus registration│ └── saga Generate a saga orchestrator with compensating actions│ └── event Generate a domain event class│ └── command Generate a CQRS command handler│ └── query Generate a CQRS query handler│ └── provider Generate provider│ └── test Generate test│ └── admin_action Generate a custom admin action│ └── admin_resource Generate an admin resource for the admin panel│ └── task Generate a background task with queue registration│ └── metric Generate a custom metric definition with backend registration│ └── mcp-controller Generate an MCPController class with tool, resource, and prompt examples│ └── mcp-server Generate a standalone MCP server script with module-level decorators│ └── auth_guard Generate an authentication/authorization guard│ └── auth_policy Generate an authorization policy│ └── guard Generate an authorization guard│├── config Configuration management│ └── show Show current configuration.│ └── init Initialize a new Lexigram configuration file with default settings.│ └── validate Validate configuration file.│ └── schema Export configuration JSON schema.│ └── doctor Diagnose configuration issues.│ └── env Show environment variables used in configuration.│ └── diff Show the difference between two configuration files.│ └── env-example Generate a .env.example file from the current configuration.│├── inspect Inspect runtime state│ └── providers List all registered providers.│ └── routes List all HTTP routes.│ └── middleware List middleware stack in order.│ └── container Show DI container registrations.│ └── events List registered event handlers.│ └── tasks List registered task handlers.│ └── dependencies Show provider dependency graph.│ └── config Alias for config show.│ └── modules List all registered Lexigram modules in the application.│ └── health Show provider health status from the running application.│ └── main Inspect runtime state (alias for subcommands).│├── shell Interactive Python REPL│ └── main Start an interactive Python REPL.│├── contrib Discover and inspect installed contributors│ └── list List installed CLI contributors and their contribution surface.│ └── inspect Show full contribution details for a specific contributor.│ └── check Verify all installed contributors load without errors.│├── project Project management (test, lint, routes)│ └── test Run project tests.│ └── lint Run project linting.│ └── typecheck Run type checking.│ └── routes List all registered web and GraphQL routes.│ └── run-all Run all project checks (test, lint, typecheck).│ └── deps Show and audit project dependencies.│├── system System information and management│ └── info Display information about the Lexigram environment.│ └── health Check the health of the current Lexigram project.│ └── shell Open an interactive Lexigram shell.│ └── providers List all registered providers in the current project.│ └── doctor Diagnose system environment and configuration issues.│├── notify Notification channel management commands│ └── channels Channel management commands│ └── test Test notification delivery│ └── inbox Inbox management commands│││ [Contributed via entry points]├── events Event schema management commands├── vector Vector store management commands├── features Feature flag management commands├── cache Cache inspection and management commands├── audit Audit log query and management commands├── workflow Workflow and pipeline management commands├── tenancy Multi-tenant management commands├── ai AI subsystem management commands├── tasks Background task management commands├── monitor Observability and monitoring commands├── mcp MCP server management — serve, inspect, list tools├── auth Authentication and authorization management commandsGenerator Inventory
Section titled “Generator Inventory”Total: 42 generators
| Generator | Description |
|---|---|
lexigram gen vector_collection | Generate a vector collection definition with backend registration |
lexigram gen feature_flag | Generate a feature flag definition |
lexigram gen message_consumer | Generate a message consumer with queue routing |
lexigram gen storage_driver | Generate a file storage backend driver |
lexigram gen notification_template | Generate a notification template |
lexigram gen cache_repo | Generate a cache-backed repository with TTL support |
lexigram gen search_index | Generate a search index with backend registration |
lexigram gen repository | Generate a database repository with query methods |
lexigram gen filter | Generate a query filter for database models |
lexigram gen seeder | Generate a database seeder for test/dev data |
lexigram gen health | Generate a database health check |
lexigram gen model | Generate a SQLAlchemy model |
lexigram gen service | Generate a service with unit of work |
lexigram gen controller | Generate a web controller with route handlers |
lexigram gen resource | Generate a RESTful resource with CRUD endpoints |
lexigram gen middleware | Generate a web middleware component |
lexigram gen graphql | Generate a GraphQL schema and resolvers |
lexigram gen webhook | Generate a webhook handler |
lexigram gen websocket | Generate a WebSocket handler |
lexigram gen workflow_def | Generate a workflow definition with steps and transitions |
lexigram gen pipeline | Generate a pipeline with sequential processing stages |
lexigram gen saga_step | Generate a saga step with compensating transaction |
lexigram gen tenant_resolver | Generate a custom tenant resolver strategy |
lexigram gen document_repo | Generate a NoSQL document repository |
lexigram gen api_client | Generate an external API client |
lexigram gen dataloader | Generate a GraphQL DataLoaderProtocol to solve N+1 problems |
lexigram gen event_handler | Generate an event handler with bus registration |
lexigram gen saga | Generate a saga orchestrator with compensating actions |
lexigram gen event | Generate a domain event class |
lexigram gen command | Generate a CQRS command handler |
lexigram gen query | Generate a CQRS query handler |
lexigram gen provider | Generate provider |
lexigram gen test | Generate test |
lexigram gen admin_action | Generate a custom admin action |
lexigram gen admin_resource | Generate an admin resource for the admin panel |
lexigram gen task | Generate a background task with queue registration |
lexigram gen metric | Generate a custom metric definition with backend registration |
lexigram gen mcp-controller | Generate an MCPController class with tool, resource, and prompt examples |
lexigram gen mcp-server | Generate a standalone MCP server script with module-level decorators |
lexigram gen auth_guard | Generate an authentication/authorization guard |
lexigram gen auth_policy | Generate an authorization policy |
lexigram gen guard | Generate an authorization guard |
Contributed Command Groups
Section titled “Contributed Command Groups”These command groups are registered via the lexigram.cli.contributors
entry-point and loaded at runtime by the CLI’s contributor discovery system.
26 groups across 26 packages
| Group | Package | Target |
|---|---|---|
lexigram admin | lexigram-admin | lexigram.admin.cli.contributor:AdminCliContributor |
lexigram ai | lexigram-ai | lexigram.ai.cli.contributor:AICliContributor |
lexigram audit | lexigram-audit | lexigram.audit.cli.contributor:AuditCliContributor |
lexigram auth | lexigram-auth | lexigram.auth.cli.contributor:AuthCliContributor |
lexigram cache | lexigram-cache | lexigram.cache.cli.contributor:CacheCliContributor |
lexigram core | lexigram-cli | lexigram.cli.contributors.core:CoreCliContributor |
lexigram events | lexigram-events | lexigram.events.cli.contributor:EventsCliContributor |
lexigram features | lexigram-features | lexigram.features.cli.contributor:FeaturesCliContributor |
lexigram graphql | lexigram-graphql | lexigram.graphql.cli.contributor:GraphQLCliContributor |
lexigram http | lexigram-http | lexigram.http.cli.contributor:HttpCliContributor |
lexigram mcp | lexigram-ai-mcp | lexigram.ai.mcp.cli.contributor:McpCliContributor |
lexigram monitor | lexigram-monitor | lexigram.monitor.cli.contributor:MonitorCliContributor |
lexigram nosql | lexigram-nosql | lexigram.nosql.cli.contributor:NoSqlCliContributor |
lexigram notification | lexigram-notification | lexigram.notification.cli.contributor:NotificationCliContributor |
lexigram queue | lexigram-queue | lexigram.queue.cli.contributor:QueueCliContributor |
lexigram resilience | lexigram-resilience | lexigram.resilience.cli.contributor:ResilienceCliContributor |
lexigram search | lexigram-search | lexigram.search.cli.contributor:SearchCliContributor |
lexigram session | lexigram-ai-session | lexigram.ai.session.cli.contributor:AiSessionCliContributor |
lexigram sql | lexigram-sql | lexigram.sql.cli.contributor:SqlCliContributor |
lexigram storage | lexigram-storage | lexigram.storage.cli.contributor:StorageCliContributor |
lexigram tasks | lexigram-tasks | lexigram.tasks.cli.contributor:TasksCliContributor |
lexigram tenancy | lexigram-tenancy | lexigram.tenancy.cli.contributor:TenancyCliContributor |
lexigram vector | lexigram-vector | lexigram.vector.cli.contributor:VectorCliContributor |
lexigram web | lexigram-web | lexigram.web.cli.contributor:WebCliContributor |
lexigram webhook | lexigram-webhook | lexigram.webhook.cli.contributor:WebhookCliContributor |
lexigram workflow | lexigram-workflow | lexigram.workflow.cli.contributor:WorkflowCliContributor |
Source Files
Section titled “Source Files”| Package | File | Commands |
|---|