Skip to content

CLI reference

Auto-generated from tyravel list via @tyravel/cli.

Monorepo version: 1.0.1.

Usage

bash
tyravel <command> [options] [arguments]
tyravel help <command>

Project

CommandDescriptionUsage
devStart the local development server with hot reloadtyravel dev [--port=<port>] [--host=<hostname>]
doctorRun environment and project health checkstyravel doctor
migrateRun database migrationstyravel migrate
newCreate a new Tyravel applicationtyravel new <name> [--path=<directory>] [--template=default|api|ssr|saas] [--db=sqlite|mysql|postgres] [--redis|--no-redis] [--auth|--no-auth] [--queue=database|redis] [--mail=log|smtp|array] [--ai|--no-ai]
serveStart the development servertyravel serve [--port=<port>] [--host=<hostname>]
shellStart an interactive Tyravel shell (REPL)
startStart the production servertyravel start [--port=<port>] [--host=<hostname>]
versionShow the Tyravel CLI version

Database

CommandDescriptionUsage
db:seedSeed the database with recordstyravel db:seed [--class=DatabaseSeeder]

Generators

CommandDescriptionUsage
make:commandCreate a new console command classtyravel make:command <Name>
make:componentCreate a new anonymous Tyr component templatetyravel make:component <name> [--class]
make:controllerCreate a new HTTP controller classtyravel make:controller <Name> [--api] [--invokable]
make:eventCreate a new domain event classtyravel make:event <Name>
make:factoryCreate a new model factory classtyravel make:factory <Model>
make:islandScaffold a paired island view partial and client mounttyravel make:island <name> [--programmatic]
make:jobCreate a new queue job classtyravel make:job <Name>
make:listenerCreate a new event listener classtyravel make:listener <Name>
make:middlewareCreate a new HTTP middleware classtyravel make:middleware <Name>
make:migrationCreate a new database migrationtyravel make:migration <name>
make:modelCreate a new Eloquent model classtyravel make:model <Name> [--uuid] [--ulid] [--migration]
make:providerCreate a new service provider classtyravel make:provider <Name>
make:rag-resourceScaffold a RAG model, migration, and ingest jobtyravel make:rag-resource <Name>
make:requestCreate a new form request classtyravel make:request <Name>
make:resourceCreate a new API resource classtyravel make:resource <Name>
make:seederCreate a new database seeder classtyravel make:seeder <Name>
make:social-driverScaffold a custom social OAuth drivertyravel make:social-driver <provider>
make:subscriberCreate an event subscriber classtyravel make:subscriber <Name>
make:testCreate a feature test classtyravel make:test <Name>
make:toolScaffold an MCP tool handler for @tyravel/mcptyravel make:tool <Name>
make:viewCreate a new Tyr template viewtyravel make:view <name>

Queue

CommandDescriptionUsage
queue:failedList failed queue jobstyravel queue:failed
queue:failed-tableCreate a migration for the failed_jobs tabletyravel queue:failed-table
queue:retryRetry a failed queue job by idtyravel queue:retry <id>
queue:tableCreate a migration for the queue jobs tabletyravel queue:table
queue:workProcess jobs from the queuetyravel queue:work [--queue=default] [--connection=database] [--sleep=1]

Routing

CommandDescriptionUsage
route:cacheCompile and cache the route manifest for production boottyravel route:cache
route:clearRemove the cached route manifesttyravel route:clear
route:listList all registered routestyravel route:list [--json] [--middleware=name] [--name=route.name] [--action=Controller]

Views

CommandDescriptionUsage
view:cacheCompile all Tyr templates for productiontyravel view:cache
view:catalogExport component and island catalog metadatatyravel view:catalog [--json]
view:clearClear compiled Tyr template cachetyravel view:clear
view:lintLint Tyr templates for common issuestyravel view:lint [--strict]
view:typesGenerate ViewPropsMap types from @props directivestyravel view:types [--output=types/view-props.generated.d.ts]
view:watchWatch Tyr templates and recompile on changetyravel view:watch

Models

CommandDescriptionUsage
model:prunePrune models that define a prunable() querytyravel model:prune

Auth

CommandDescriptionUsage
auth:installScaffold auth (session + API tokens, policies, password reset, OAuth)tyravel auth:install

Auth

CommandDescriptionUsage
oauth:client:createRegister a new OAuth2 clienttyravel oauth:client:create <name> [--redirect=uri] [--public] [--grants=authorization_code,refresh_token]
oauth:installScaffold OAuth2 authorization server routes and migrationstyravel oauth:install

Crypto

CommandDescriptionUsage
crypto:generate-keysGenerate post-quantum key materialtyravel crypto:generate-keys [--algorithm=hybrid-x25519-ml-kem-768] [--format=json|env]
crypto:installScaffold post-quantum crypto configurationtyravel crypto:install

AI / vector

CommandDescriptionUsage
vector:embedQueue embedding jobs for vector records missing embeddingstyravel vector:embed --model=<Name> [--batch=32] [--queue=default] [--connection=database]
vector:installCreate a migration that enables the pgvector extensiontyravel vector:install

MCP

CommandDescriptionUsage
mcp:export-rulesExport Cursor/Claude agent rules from the Tyravel capability manifesttyravel mcp:export-rules [--format=cursor|claude|agents] [--output=<path>]
mcp:serveRun the Tyravel MCP server over stdio for agentstyravel mcp:serve

Notifications

CommandDescriptionUsage
notification:failedList failed notification jobstyravel notification:failed
notification:retryRetry a failed notification job by idtyravel notification:retry <id>

Localization

CommandDescriptionUsage
lang:missingReport missing translation keystyravel lang:missing [--strict]
lang:publishPublish application locale filestyravel lang:publish [--locale=en] [--framework]

Debug

CommandDescriptionUsage
debug:clearClear persisted Tyravel debug entriestyravel debug:clear
debug:installScaffold debug bar, timeline routes, and configtyravel debug:install
debug:watchTail persisted debug entries while tyravel serve is runningtyravel debug:watch [--correlations]

Admin

CommandDescriptionUsage
admin:installScaffold optional admin panel routes, config, and policiestyravel admin:install

Scheduler

CommandDescriptionUsage
schedule:runRun scheduled tasks that are duetyravel schedule:run

Sessions

CommandDescriptionUsage
session:prunePrune expired database sessionstyravel session:prune

Released under the MIT License.