typeorm

TypeORM CLI

Subcommands

NameDescription
schema:syncSynchronizes your entities with database schema
schema:logShows sql to be executed by schema:sync command
schema:dropDrops all tables in the database on your default connection
queryExecutes given SQL query on a default connection
entity:createGenerates a new entity
subscriber:createGenerates a new subscriber
migration:createCreates a new migration file
migration:generateGenerates a new migration file with sql needs to be executed to update schema
migration:runRuns all pending migrations
migration:showShow all migrations and whether they have been run or not
migration:revertReverts last executed migration
versionPrints TypeORM version this project uses
cache:clearClears all data stored in query runner cache
initGenerates initial TypeORM project structure

Options

NameDescription
--helpShow help for command
-v,--versionShow the version