• Stars
    star
    2,487
  • Rank 17,709 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Sequelize CLI

sequelize/cli npm version CI

The Sequelize Command Line Interface (CLI)

Table of Contents

Installation

Make sure you have Sequelize installed. Then install the Sequelize CLI to be used in your project with

npm install --save-dev sequelize-cli

And then you should be able to run the CLI with

npx sequelize --help

Usage

Sequelize CLI [Node: 10.21.0, CLI: 6.0.0, ORM: 6.1.0]

sequelize <command>

Commands:
  sequelize db:migrate                        Run pending migrations
  sequelize db:migrate:schema:timestamps:add  Update migration table to have timestamps
  sequelize db:migrate:status                 List the status of all migrations
  sequelize db:migrate:undo                   Reverts a migration
  sequelize db:migrate:undo:all               Revert all migrations ran
  sequelize db:seed                           Run specified seeder
  sequelize db:seed:undo                      Deletes data from the database
  sequelize db:seed:all                       Run every seeder
  sequelize db:seed:undo:all                  Deletes data from the database
  sequelize db:create                         Create database specified by configuration
  sequelize db:drop                           Drop database specified by configuration
  sequelize init                              Initializes project
  sequelize init:config                       Initializes configuration
  sequelize init:migrations                   Initializes migrations
  sequelize init:models                       Initializes models
  sequelize init:seeders                      Initializes seeders
  sequelize migration:generate                Generates a new migration file      [aliases: migration:create]
  sequelize model:generate                    Generates a model and its migration [aliases: model:create]
  sequelize seed:generate                     Generates a new seed file           [aliases: seed:create]

Options:
  --version  Show version number                                                  [boolean]
  --help     Show help                                                            [boolean]

Please specify a command

Contributing

All contributions are accepted as a PR.

  • You can file issues by submitting a PR (with test) as a test case.
  • Implement new feature by submitting a PR
  • Improve documentation by submitting PR to Sequelize

Please read the contributing guidelines.

Documentation

More Repositories

1

sequelize

Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
JavaScript
28,666
star
2

sequelize-auto

Automatically generate bare sequelize models from your database.
TypeScript
2,851
star
3

sequelize-typescript

Decorators and some other features for sequelize
TypeScript
2,726
star
4

express-example

A proposal for the usage of Sequelize within an Express.JS application.
JavaScript
2,476
star
5

umzug

Framework agnostic migration tool for Node.js
TypeScript
1,932
star
6

sequelize-restful

A connect module that adds a restful API for all defined models to your application.
JavaScript
294
star
7

sequelize-admin

A connect module for managing database entries of registered sequelize models.
JavaScript
49
star
8

sequelize-sscce

Base repository for creating and sharing Sequelize SSCCEs
TypeScript
37
star
9

doc

Sequelize Documentation
32
star
10

website

Our beloved website that contains all versions of our documentations and the API references.
HTML
25
star
11

sequelize-performance

Some performance tests for sequelize and some other libraries for comparison.
Ruby
20
star
12

sequelize-authentication

A connect module for authentication against a database.
JavaScript
16
star
13

gulp-sequelize

Gulp tasks for the sequelize.
JavaScript
12
star
14

sequelize.org

JavaScript
6
star
15

sequelize-utils

Some handy utils for the development of Sequelize.
JavaScript
3
star
16

sequelize-contrib-dockerfile

Dockerfile for Sequelize contribution env (MySQL + Postgres + MariaDB)
Shell
3
star
17

sequelize-cli

3
star