Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

tormfig

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tormfig

Alternative to typeorm cli.

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

This package is an alternative cli for the typeorm package.

The tormfig cli allows you to do the following:

  • schema:sync Synchronize db schema

Usage

$ npx tormfig -h
Usage: tormfig [options] [command]

Options:
  -V, --version                    output the version number
  -h, --help                       output usage information

Commands:
  schema:sync [options] <rootdir>  Synchronizes database schema. <rootdir> must be the directory that contains the entity, migration, subscriber directories. Source file inside the `entity` folder that contains the model definition must have the extension `.entity.ts`. For e.g. `User.entity.ts`
$ npx tormfig schema:sync -h
Usage: schema:sync [options] <rootdir>

Synchronizes database schema. <rootdir> must be the directory that contains the entity, migration, subscriber directories.

Options:
  -t, --type <type>          Specify database type. (default: "mysql")
  -H, --host <host>          Specify hostname of database. (default: "localhost")
  -P, --port <port>          Specify port of database. (default: 3306)
  -d, --database <db>        Specify name of database. Prompted if not specified.
  -u, --username <username>  Specify database user's username. (default: "root")
  -p, --password <password>  Specify database user's password. Prompted if not specified.
  -h, --help                 output usage information

<rootdir> must be the path to the directory which contains entity, migrations, and subscriber directories. Source file inside the entity folder that contains the model definition must have the extension .entity.ts. For e.g. User.entity.ts.

Keywords

typeorm

FAQs

Package last updated on 21 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts