cli - `migrate:make` cannot be used without a knexfile.js
See original GitHub issuethe command:
knex migrate:make <name> cannot be used without a knexfile.js. This is literally pointless. If I want to create a migration in the directory I am in, then I shouldn’t need a knexfile.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
cli - migrate:make cannot be used without a knexfile.js #2158
the command: knex migrate:make <name> cannot be used without a knexfile.js. This is literally pointless. If I want to create a migration in ......
Read more >Migrations | Knex.js
Once you have a knexfile.js, you can use the migration tool to create migration ... if the --stub option is not passed, the...
Read more >Why yarn knex is not migrating in local repo - Stack Overflow
I try something similar, yarn knex migrate:make init --knexfile --directory ./config/knexfile.js . and this didn't work. although I will try ...
Read more >Knex.js Tutorial For Beginners - Shahed Nasser
This script uses Knex's CLI command migrate:latest to migrate the latest migrations that have not been migrated yet. The option --knexfile ...
Read more >Use SQL Query Builder Knex.js with Node.js and Express.js
Migrate using migration CLI. Next, run the $ knex migrate:make migration_name command. Now look inside the migrations directory you specified earlier, you ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It still require
clientconfiguration for climigrate:make. Is this really necessary?Or an option
-dor--directory, pointing by default tocwd, can be added to the cli instead of the knexfile.