@corrasion/typeorm-cli

0.1.0 • Public • Published

TypeORM unnoficial CLI Wrapper

This is a wrapper for TypeORM CLI, which execute the original CLI, using ts-node and ts-path-mapping as required dependencies.

Implementation

First you must have a project with typescript, typeorm and its corresponding ormconfig.json file. Then, install ts-node:

npm i --save-dev ts-node

Optionally, if you want to use custom path alias, you can add ts-path-mapping too:

npm i --save ts-path-mapping

finally, install this package locally...

npm i --save-dev @corrasion/typeorm-cli

...or global if you want:

npm i --g @corrasion/typeorm-cli

Usage

If you was installed the package as local development dependency, simply type:

npx typeorm-cli ...commands

...or if you was installed this package globally:

typeorm-cli ...commands

Replace ...commands with any command from typeorm. For example:

typeorm-cli migration:generate -n Create-DB

Package Sidebar

Install

npm i @corrasion/typeorm-cli

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

61.3 kB

Total Files

65

Last publish

Collaborators

  • sleep-written