Skip to content

Built-in commands

Reactor’s native registry includes 72 commands. These references cover their arguments, options, defaults, effects and execution examples. Applications can add signatures through classes and console routes.

Run commands from the project root. The direct command and local file share the same registry and execution lifecycle:

Terminal window
orionis list
python -B reactor list
orionis make:console-command --help
python -B reactor make:console-command --help

list displays registered signatures; COMMAND --help inspects a signature’s parser without executing the operation. -h is its short form. Each page lists the actual declared options/aliases, including inherited generator and Database options. Long options cannot be abbreviated.

FamilyCountCoverage
Code generators24Create all 24 available component types from stubs.
Application and maintenance commands16Server, tests, inspection, clearing, keys and packages.
Database commands11Inspection, migrations, rollback, seeding and wiping.
Worker and scheduler commands10Queue table preparation, workers, failure operations, scheduler and MCP.
Additional internal storage commands4Token, cache, scheduler, and session tables; queue preparation remains in the worker reference.
Project bootstrap and recovery7Enable contexts and restore missing configuration.

Each link opens the complete options and examples for that command.

CommandPurpose
aboutShow installed framework metadata.
auth:migrateCreate internal tables for roles, permissions, their relationships, personal access tokens, and password recovery.
bootstrap:aiEnable MCP server routes.
bootstrap:apiEnable API routing.
bootstrap:configRestore missing official configuration files.
bootstrap:consoleEnable console routes and directories.
bootstrap:lifespanCreate and integrate lifecycle callbacks.
bootstrap:webEnable web routing.
bootstrap:websocketEnable WebSocket routing.
cache:migrateCreate missing SQL cache and lock tables.
clear:cacheClear the default cache store.
clear:logsRemove framework log files.
clear:testingRemove cached test results.
clear:viewsRemove compiled view bytecode.
db:seedRun pending seeders.
db:showInspect a database and summarize its tables.
db:tableShow a table’s structure.
db:wipeDrop database user objects.
downEnable the HTTP maintenance state.
envShow the application environment.
key:generateGenerate and persist the application encryption key.
listList Reactor’s loaded command registry.
make:console-commandCreate a command with a unique signature and description.
make:console-listenerCreate a console task listener.
make:contractGenerate a service contract.
make:database-migrationCreate a timestamped migration.
make:database-schemaGenerate a reusable table definition.
make:database-seederGenerate a database seeder.
make:facadeGenerate a facade and its typing interface.
make:factoryGenerate a model factory.
make:http-controllerCreate a resource or invokable controller.
make:http-middlewareGenerate HTTP middleware.
make:http-schemaCreate an HTTP validation schema.
make:http-schema-ruleGenerate a custom validation rule.
make:jobCreate an asynchronous queue job.
make:mailCreate a reusable mail class.
make:mcp-promptGenerate an MCP prompt.
make:mcp-resourceGenerate an MCP resource.
make:mcp-serverGenerate an MCP server.
make:mcp-toolGenerate an MCP tool.
make:modelCreate an ORM model.
make:providerCreate an eager or deferred provider.
make:realtime-hubCreate a remote-method hub.
make:realtime-socketCreate a Realtime WebSocket handler.
make:serviceGenerate a service class.
make:testCreate an application test case.
mcp:listList HTTP and local MCP servers.
mcp:startStart a local MCP server over STDIO.
migrateApply pending migrations and optionally seeders.
migrate:freshRebuild history and reapply migrations.
migrate:refreshRoll back batches and rerun pending migrations.
migrate:resetRoll back every applied migration.
migrate:rollbackRoll back the latest batch or several batches.
migrate:statusShow applied and pending migrations.
optimizeValidate project Python syntax.
optimize:clearRemove compiled application artifacts.
packagesInstall optional Orionis extras and dependency groups.
queue:clearClear a queue, including delayed or reserved jobs.
queue:failedList terminally failed jobs.
queue:forgetRemove a failure record.
queue:migrateCreate missing SQL queue and failure tables while preserving data.
queue:retryRequeue one identified failed job.
queue:workConsume persisted jobs from a queue connection.
route:listInspect registered HTTP routes.
schedule:listInspect tasks defined by the scheduler.
schedule:migrateCreate the native scheduler table without starting tasks.
schedule:workStart the scheduler process.
seedRun pending seeders.
serveStart the application’s Granian HTTP server.
session:migrateCreate the configured SQL session table.
testRun application tests.
upDisable the HTTP maintenance state.

Reactor returns the integer returned by handle(); a non-integer return is converted to 0. An uncaught exception reaches the console failure handler and produces 1. The parser exits with 0 for help or 2 for invalid arguments.

Not every command converts internal failures into an exception or status 1: common generators print certain errors and return None. Their pages explain this limitation and command-specific statuses for packages, test, db:wipe and workers. Consider command output, exit status and the expected result together.

For calling commands from code and injecting services, see Reactor and programmatic execution.