mccraveiro/mongoose-migration

migrate init command after npm installing doesn't work

Opened this issue · 1 comments

Hi,
I am using ubuntu 14.04, node version is 6.0.0. I installed this module and on running
migrate init
I get following message
Usage: migrate COMMAND ...

Available commands:
    compare_model_to_db          - compare MetaData against the current database state
create                       - create an empty repository at the specified path
create_model                 - dump the current database as a Python model to stdout
db_version                   - show the current version of the repository under version control
downgrade                    - downgrade a database to an earlier version
drop_version_control         - removes version control from a database
help                         - displays help on a given command
make_update_script_for_model - create a script changing the old MetaData to the new (current) MetaData
manage                       - creates a Python script that runs Migrate with a set of default values
script                       - create an empty change Python script
script_sql                   - create empty change SQL scripts for given database
source                       - display the Python code for a particular version in this repository
test                         - performs the upgrade and downgrade command on the given database
update_db_from_model         - modify the database to match the structure of the current MetaData
upgrade                      - upgrade a database to a later version
version                      - display the latest version available in a repository
version_control              - mark a database as under this repository's version control

Enter "migrate help COMMAND" for information on a particular command.

migrate: error: Invalid command init

Could you please help me ?

@vikassingla You probably have another binary named "migrate" on your path.
Try running ./node_modules/mongoose-migration/bin/migrate.js init