Installing
Installing the ORM-CLI package
In order to install ORM-CLI, it is necessary to write the command:
npm install -g cli-orm
After that, in order to configure the operation of the CLI in your project, you need to create an .env
file in which you need to enter the configuration of your ORM system, here is an example:
#DB_TYPE=mysql
#HOST=some_host
#USER=some_user
#PASSWORD=some_password
#PORT=3306
DB_TYPE=postgres
HOST=some_host
USER=some_user
PASSWORD=some_password
PORT=5432
DATABASE=first
MIGRATION_TABLE=migrations
MIGRATION_SCHEMA=public
Then write the command orm-cli --init
Enjoy using it!
Last updated