0.0.1 • Published 4 years ago

cripsyctl v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

crispy-cli

CLI to communicate with crispy-api.

Getting started

Installation

    npm i -g crispy-cli

Configuration

To specify your own configuration you could use crispy.js config file.

fieldtypeDescription
tableNamestringtable name where migrations would be stored
migrationsDirstringdirectory to store all migrations files
mysqlConnectionMysqlConnection/stringmysql connection based on docs from mysql library
CrispyAPICrispyAPICrispy API configuration

Crispy API configuration

fieldtypeDescription
urlstringurl to your crispy api server
apiKeystringapi key to your api server to have basic auth

Running

crispy-cli --help Shows all available commands

Usage: crispy-cli [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

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]

Local setup

Prerequisites

Project setup

To setup this project you have to run following commands:

  • nvm use To activate specified NodeJS version
  • yarn Install dependencies

Running

  • yarn start Running nodemon for local development
  • yarn build Compile Typescript to ./dist directory
  • yarn clean Remove & Install dependencies

CONTRIBUTING

Contributions are always welcome, no matter how large or small

0.0.2

4 years ago

0.0.1

4 years ago