Coder Social home page Coder Social logo

nestorrente / erdiagram-cli Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 7.17 MB

ERDiagram library CLI command

License: MIT License

JavaScript 5.84% Shell 2.96% Java 14.75% TypeScript 67.99% PLSQL 8.46%
entity relationship diagram sql mysql sqlserver postgres postgresql oracledb sqlite

erdiagram-cli's Introduction

ERDiagram CLI

This application is the CLI version of the ERDiagram library.

Please, refer to the library docs for further information about ERDiagram features.

Table of contents

Installation

Global installation:

npm install -g @nestorrente/erdiagram-cli

You can also install it for a single project:

npm install --save-dev @nestorrente/erdiagram-cli

Usage

erdiagram <command> [options]

Commands:

  • erdiagram generate <input>: generate the code of an entity-relationship model.
  • erdiagram create-config: create a config file with the default values.

Options:

  • --help, -h: Show help.
  • --version, -v Show version number.

Generate command

The generate command generates the output code from an input entity-relationship diagram written using the ERDiagram language.

Usage:

erdiagram generate -f <format> <input>

Required options:

  • --format <format>, -f <format>: output format. See below the full list of supported formats.

Additional options:

  • --config <file>, -c <file>: config file path. If not specified, uses erdiagram.config.json (if exists).
  • --output <file>, -o <file>: output file path. Prints to standard output if not specified.

Supported output formats:

  • Database creation script:
    • mysql
    • oracle
    • postgresql, postgres
    • sqlite
    • sqlserver, mssql, mssqlserver
  • OOP classes/interfaces:
    • java
    • typescript, ts
  • Diagram:
    • nomnoml
    • plantuml

Create config command

The create-config commands generates a config file with the default values.

By default, if the file already exists, it asks for confirmation, but this behaviour can be customized using the --override and --preserve options.

erdiagram create-config

Additional:

  • --config <file>, -c <file>: config file path. If not specified, uses erdiagram.config.json if exists.
  • --overwrite, -w: overwrite existing config file without asking.
  • --preserve, -p: preserve existing config file without asking.

erdiagram-cli's People

Contributors

nestorrente avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.