不要怂,就是干,撸起袖子干!

Commit 2a2bbd3b by James Irving-Swift

Update migrations.md

Added a line about using the command line when CLI is installed locally
1 parent a5e4e69e
Showing with 4 additions and 3 deletions
...@@ -8,6 +8,8 @@ In order to use the CLI you need to install the respective package: ...@@ -8,6 +8,8 @@ In order to use the CLI you need to install the respective package:
$ npm install --save sequelize-cli $ npm install --save sequelize-cli
``` ```
As with any npm package, you can use the global flag (`-g`) to install the CLI globally. If you have installed the CLI without the global flag, use `node_modules/.bin/sequelize [command]` instead of `sequelize [command]`.
The CLI currently supports the following commands: The CLI currently supports the following commands:
```bash ```bash
...@@ -18,7 +20,7 @@ $ sequelize init # Initializes the project. ...@@ -18,7 +20,7 @@ $ sequelize init # Initializes the project.
$ sequelize migration:create # Generates a new migration file. $ sequelize migration:create # Generates a new migration file.
$ sequelize version # Prints the version number. $ sequelize version # Prints the version number.
``` ```
Further and more detailled information about the available commands Further and more detailled information about the available commands
can be obtained via the help command: can be obtained via the help command:
...@@ -303,4 +305,4 @@ migrator ...@@ -303,4 +305,4 @@ migrator
[0]: http://gulpjs.com/ [0]: http://gulpjs.com/
[1]: https://github.com/sequelize/cli [1]: https://github.com/sequelize/cli
[2]: https://github.com/sequelize/gulp-sequelize [2]: https://github.com/sequelize/gulp-sequelize
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!