Skip to content
GitHub

CLI Reference

Date: 2026-05-31 Total entries: 73 Packages: 24

Auto-generated by running the actual CLI and scanning pyproject.toml entry points.

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.
├── gen Code generation commands
│ └── list List all available generators.
│ └── storage_driver Generate a file storage backend driver
│ └── 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
│ └── vector_collection Generate a vector collection definition with backend registration
│ └── message_consumer Generate a message consumer with queue routing
│ └── dataloader Generate a GraphQL DataLoaderProtocol to solve N+1 problems
│ └── feature_flag Generate a feature flag definition
│ └── metric Generate a custom metric definition with backend registration
│ └── 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
│ └── mcp-controller Generate an MCPController class with tool, resource, and prompt examples
│ └── mcp-server Generate a standalone MCP server script with module-level decorators
│ └── api_client Generate an external API client
│ └── cache_repo Generate a cache-backed repository with TTL support
│ └── notification_template Generate a notification template
│ └── tenant_resolver Generate a custom tenant resolver strategy
│ └── task Generate a background task with queue registration
│ └── provider Generate provider
│ └── test Generate test
│ └── search_index Generate a search index with backend registration
│ └── auth_guard Generate an authentication/authorization guard
│ └── auth_policy Generate an authorization policy
│ └── guard Generate an authorization guard
│ └── 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
│ └── document_repo Generate a NoSQL document repository
│ └── admin_action Generate a custom admin action
│ └── admin_resource Generate an admin resource for the admin panel
├── 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
├── ai AI subsystem management commands
├── features Feature flag management commands
├── monitor Observability and monitoring commands
├── workflow Workflow and pipeline management commands
├── mcp MCP server management — serve, inspect, list tools
├── cache Cache inspection and management commands
├── audit Audit log query and management commands
├── tenancy Multi-tenant management commands
├── tasks Background task management commands
├── auth Authentication and authorization management commands

Total: 42 generators

GeneratorDescription
lexigram gen storage_driverGenerate a file storage backend driver
lexigram gen repositoryGenerate a database repository with query methods
lexigram gen filterGenerate a query filter for database models
lexigram gen seederGenerate a database seeder for test/dev data
lexigram gen healthGenerate a database health check
lexigram gen modelGenerate a SQLAlchemy model
lexigram gen serviceGenerate a service with unit of work
lexigram gen controllerGenerate a web controller with route handlers
lexigram gen resourceGenerate a RESTful resource with CRUD endpoints
lexigram gen middlewareGenerate a web middleware component
lexigram gen graphqlGenerate a GraphQL schema and resolvers
lexigram gen webhookGenerate a webhook handler
lexigram gen websocketGenerate a WebSocket handler
lexigram gen vector_collectionGenerate a vector collection definition with backend registration
lexigram gen message_consumerGenerate a message consumer with queue routing
lexigram gen dataloaderGenerate a GraphQL DataLoaderProtocol to solve N+1 problems
lexigram gen feature_flagGenerate a feature flag definition
lexigram gen metricGenerate a custom metric definition with backend registration
lexigram gen workflow_defGenerate a workflow definition with steps and transitions
lexigram gen pipelineGenerate a pipeline with sequential processing stages
lexigram gen saga_stepGenerate a saga step with compensating transaction
lexigram gen mcp-controllerGenerate an MCPController class with tool, resource, and prompt examples
lexigram gen mcp-serverGenerate a standalone MCP server script with module-level decorators
lexigram gen api_clientGenerate an external API client
lexigram gen cache_repoGenerate a cache-backed repository with TTL support
lexigram gen notification_templateGenerate a notification template
lexigram gen tenant_resolverGenerate a custom tenant resolver strategy
lexigram gen taskGenerate a background task with queue registration
lexigram gen providerGenerate provider
lexigram gen testGenerate test
lexigram gen search_indexGenerate a search index with backend registration
lexigram gen auth_guardGenerate an authentication/authorization guard
lexigram gen auth_policyGenerate an authorization policy
lexigram gen guardGenerate an authorization guard
lexigram gen event_handlerGenerate an event handler with bus registration
lexigram gen sagaGenerate a saga orchestrator with compensating actions
lexigram gen eventGenerate a domain event class
lexigram gen commandGenerate a CQRS command handler
lexigram gen queryGenerate a CQRS query handler
lexigram gen document_repoGenerate a NoSQL document repository
lexigram gen admin_actionGenerate a custom admin action
lexigram gen admin_resourceGenerate an admin resource for the admin panel

These command groups are registered via the lexigram.cli.contributors entry-point and loaded at runtime by the CLI’s contributor discovery system.

24 groups across 24 packages

GroupPackageTarget
lexigram adminlexigram-adminlexigram.admin.cli.contributor:AdminCliContributor
lexigram ailexigram-ailexigram.ai.cli.contributor:AICliContributor
lexigram auditlexigram-auditlexigram.audit.cli.contributor:AuditCliContributor
lexigram authlexigram-authlexigram.auth.cli.contributor:AuthCliContributor
lexigram cachelexigram-cachelexigram.cache.cli.contributor:CacheCliContributor
lexigram corelexigram-clilexigram.cli.contributors.core:CoreCliContributor
lexigram eventslexigram-eventslexigram.events.cli.contributor:EventsCliContributor
lexigram featureslexigram-featureslexigram.features.cli.contributor:FeaturesCliContributor
lexigram graphqllexigram-graphqllexigram.graphql.cli.contributor:GraphQLCliContributor
lexigram httplexigram-httplexigram.http.cli.contributor:HttpCliContributor
lexigram mcplexigram-ai-mcplexigram.ai.mcp.cli.contributor:McpCliContributor
lexigram monitorlexigram-monitorlexigram.monitor.cli.contributor:MonitorCliContributor
lexigram nosqllexigram-nosqllexigram.nosql.cli.contributor:NoSqlCliContributor
lexigram notificationlexigram-notificationlexigram.notification.cli.contributor:NotificationCliContributor
lexigram queuelexigram-queuelexigram.queue.cli.contributor:QueueCliContributor
lexigram resiliencelexigram-resiliencelexigram.resilience.cli.contributor:ResilienceCliContributor
lexigram searchlexigram-searchlexigram.search.cli.contributor:SearchCliContributor
lexigram sqllexigram-sqllexigram.sql.cli.contributor:SqlCliContributor
lexigram storagelexigram-storagelexigram.storage.cli.contributor:StorageCliContributor
lexigram taskslexigram-taskslexigram.tasks.cli.contributor:TasksCliContributor
lexigram tenancylexigram-tenancylexigram.tenancy.cli.contributor:TenancyCliContributor
lexigram vectorlexigram-vectorlexigram.vector.cli.contributor:VectorCliContributor
lexigram weblexigram-weblexigram.web.cli.contributor:WebCliContributor
lexigram workflowlexigram-workflowlexigram.workflow.cli.contributor:WorkflowCliContributor

PackageFileCommands
lexigram-clilexigram-cli/src/lexigram/cli/commands/config.pyshow, init, validate, schema, doctor, env
lexigram-clilexigram-cli/src/lexigram/cli/commands/contrib.pylist, inspect, check
lexigram-clilexigram-cli/src/lexigram/cli/commands/db.pyinit, migrate, create, upgrade, downgrade, status
lexigram-clilexigram-cli/src/lexigram/cli/commands/dev.pystart
lexigram-clilexigram-cli/src/lexigram/cli/commands/events.pymigrate, status, list, replay
lexigram-clilexigram-cli/src/lexigram/cli/commands/gen.pylist
lexigram-clilexigram-cli/src/lexigram/cli/commands/inspect.pyproviders, routes, middleware, container, events, tasks
lexigram-clilexigram-cli/src/lexigram/cli/commands/new.pyproject, package
lexigram-clilexigram-cli/src/lexigram/cli/commands/project.pytest, lint, typecheck, routes, run_all, deps
lexigram-clilexigram-cli/src/lexigram/cli/commands/shell.pymain
lexigram-clilexigram-cli/src/lexigram/cli/commands/system.pyinfo, health, shell, providers, doctor
lexigram-clilexigram-cli/src/lexigram/cli/runtime/main.pyentry point, command registration
lexigram-ailexigram-ai/src/lexigram/ai/cli/commands.pystatus, list, list, config, test
lexigram-auditlexigram-audit/src/lexigram/audit/cli/commands.pyquery, verify, purge, stats, export
lexigram-authlexigram-auth/src/lexigram/auth/cli/commands.pygenerate, verify, roles, list, revoke
lexigram-cachelexigram-cache/src/lexigram/cache/cli/commands.pystatus, flush, keys, get, stats
lexigram-eventslexigram-events/src/lexigram/events/cli/commands.pystatus, handlers, migrate, replay
lexigram-featureslexigram-features/src/lexigram/features/cli/commands.pylist, get, enable, disable, evaluate
lexigram-monitorlexigram-monitor/src/lexigram/monitor/cli/commands.pystatus, list, status, list
lexigram-notificationlexigram-notification/src/lexigram/notification/cli/commands.pylist, email, push, list
lexigram-sqllexigram-sql/src/lexigram/sql/cli/commands.pystatus, run, rollback, history, seed
lexigram-taskslexigram-tasks/src/lexigram/tasks/cli/commands.pylist, inspect, retry, cancel, purge, list
lexigram-tenancylexigram-tenancy/src/lexigram/tenancy/cli/commands.pylist, create, status, suspend
lexigram-vectorlexigram-vector/src/lexigram/vector/cli/commands.pystatus, list, create, delete
lexigram-workflowlexigram-workflow/src/lexigram/workflow/cli/commands.pylist, run, status, history, graph