CLI to communicate with crispy-api
.
npm i -g crispyctl
To specify your own configuration you could use crispy.js
config file.
field | type | Description |
---|---|---|
tableName | string | table name where migrations would be stored |
migrationsDir | string | directory to store all migrations files |
mysqlConnection | MysqlConnection/string | mysql connection based on docs from mysql library |
CrispyAPI | CrispyAPI | Crispy API configuration |
Crispy API configuration
field | type | Description |
---|---|---|
url | string | url to your crispy api server |
apiKey | string | api key to your api server to have basic auth |
crispyctl --help
Shows all available commands
Usage: crispyctl [options] [command]
CLI tool to communicate with crispy-api
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
migrations|m Operate with Crispy migrations
crispy-cli migrations --help
Shows all available migrations commands`
Usage: crispy-cli migrations [options] [command]
Options:
-h, --help output usage information
Commands:
migrate <migrationName> Runs the specified migration
rollback <migrationName> Will undo the specified migration
create <migrationName> Create new migration
help [cmd] display help for [cmd]
- NodeJS version 12
- NVM - https://github.com/nvm-sh/nvm
- yarn - https://github.com/yarnpkg/yarn
- Typescript 3.7.3 - https://www.typescriptlang.org/
To setup this project you have to run following commands:
nvm use
To activate specified NodeJS versionyarn
Install dependencies
yarn start
Running nodemon for local developmentyarn build
Compile Typescript to./dist
directoryyarn clean
Remove & Install dependencies
Contributions are always welcome, no matter how large or small