typeorm
TypeORM CLI
Subcommands
Name | Description |
---|---|
schema:sync | Synchronizes your entities with database schema |
schema:log | Shows sql to be executed by schema:sync command |
schema:drop | Drops all tables in the database on your default connection |
query | Executes given SQL query on a default connection |
entity:create | Generates a new entity |
subscriber:create | Generates a new subscriber |
migration:create | Creates a new migration file |
migration:generate | Generates a new migration file with sql needs to be executed to update schema |
migration:run | Runs all pending migrations |
migration:show | Show all migrations and whether they have been run or not |
migration:revert | Reverts last executed migration |
version | Prints TypeORM version this project uses |
cache:clear | Clears all data stored in query runner cache |
init | Generates initial TypeORM project structure |
Options
Name | Description |
---|---|
--help | Show help for command |
-v, --version | Show the version |