All apps/TypeORM CLI

TypeORM CLI

typeorm

Command-line interface of the TypeORM object-relational mapper.

Runs as typeorm|macOS, Linux, Windows|typeorm.io

Command form

ai-draft · 6 tasks · 17 fields

Run schema and migration commands against a configured connection.

Opens the form; the finished command lands at your prompt, unrun
otty gui typeorm

typeorm migration:run

Run migrations

Run all pending migrations.

Run migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
Connection name
string
Connection config file*
file
Use a transaction
--transaction
TasksEach one presets the form for one job
Run pending migrations
configconnectiontransaction
ParametersOnly these flags are editable in the form
Connection name
string
--connection-c
Connection config file
path
--config-f
Use a transaction
boolean
--transaction-t

typeorm migration:revert

Revert migration

Revert the last executed migration.

Revert migrationExample values, fixed in this page — nothing here reaches a terminal
Basic
Connection name
string
Connection config file*
file
Use a transaction
--transaction
TasksEach one presets the form for one job
Revert last migration
configconnectiontransaction
ParametersOnly these flags are editable in the form
Connection name
string
--connection-c
Connection config file
path
--config-f
Use a transaction
boolean
--transaction-t

typeorm migration:show

Show migrations

List migrations and whether they ran.

Show migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
Connection name
string
Connection config file*
file
TasksEach one presets the form for one job
Show migrations
configconnection
ParametersOnly these flags are editable in the form
Connection name
string
--connection-c
Connection config file
path
--config-f

typeorm migration:generate

Generate migration

Create a migration from schema differences.

Generate migrationExample values, fixed in this page — nothing here reaches a terminal
Basic
Migration name*
string
Connection config file*
file
Output directory
directory
Pretty-print SQL
--pretty
TasksEach one presets the form for one job
Generate migration
nameconfigdirpretty
Preview only
nameconfigdryrun
ParametersOnly these flags are editable in the form
Migration name
string
--name-n
Connection name
string
--connection-c
Connection config file
path
--config-f
Output directory
path
--dir-d
Pretty-print SQL
boolean
--pretty-p
JavaScript output
boolean
--outputJs-o
Dry run
boolean
--dryrun--dr

typeorm schema:sync

Sync schema

Synchronize entities with the database schema; this can alter or drop tables.

Sync schemaExample values, fixed in this page — nothing here reaches a terminal
Basic
Connection name
string
Connection config file*
file
TasksEach one presets the form for one job
Sync schema
configconnection
ParametersOnly these flags are editable in the form
Connection name
string
--connection-c
Connection config file
path
--config-f
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed typeorm against its version. A form that does not match your version is not offered.