knex cli tool doesn't take --cwd option
See original GitHub issueThere’s code to read it from argv.cwd
, but you can’t specify it - it goes error: unknown option --cwd
. We kinda need it, because we don’t want the working directory to change when we run knex.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
knex cli tool doesn't take --cwd option · Issue #326 - GitHub
There's code to read it from argv.cwd , but you can't specify it - it goes error: unknown option --cwd . We kinda...
Read more >How to use the Knex CLI - Stack Overflow
First type in "npx knex" to access options and commands available to the knex module. To be able to make use of the...
Read more >Changelog - Knex.js
Increment / decrement returns the number of affectedRows (#330). Allow --cwd option flag to be passed to CLI tool (#326). 0.6.15 - June...
Read more >knex-migrator - npm
knex -migrator. A database migration tool for knex.js, which supports MySQL and SQlite3. Features. [x] JS API; [x] CLI Tool ...
Read more >Configuration - MikroORM
cwd () there to always have the same base path regardless of how you run the app. By default, ReflectMetadataProvider is used that...
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 FreeTop 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
Top GitHub Comments
No, you can’t, actually - if you specify a knexfile in a different directory, it chdirs to that directory… for some reason.
Thanks for the fix! On Jun 17, 2014 12:06 AM, “Tyler Kellen” notifications@github.com wrote:
Definitely sounds like a case for using the migration API.