Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crispyctl

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crispyctl

CLI tool to communicate with crispy-api

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

crispyctl

CLI to communicate with crispy-api.

Getting started

Installation

    npm i -g crispyctl

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

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

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

  • NodeJS version 12
  • NVM - https://github.com/nvm-sh/nvm
  • yarn - https://github.com/yarnpkg/yarn
  • Typescript 3.7.3 - https://www.typescriptlang.org/

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

FAQs

Package last updated on 20 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc