erquhart
erquhart12mo ago

Support skipping all prompts for convex cli import

Currenty the -y flag only skips prompts due to expected overwrite of documents. But the initial prompt still waits:
Once the import has started, it will run in the background.
Interrupting `npx convex import` will not cancel it.
? Perform the import? (Y/n)
Once the import has started, it will run in the background.
Interrupting `npx convex import` will not cancel it.
? Perform the import? (Y/n)
Would be awesome if the yes flag skipped all prompts.
3 Replies
lee
lee12mo ago
that would be awesome, yes (no pun intended). whoops sorry it took me a while to get to this. can you describe the flow to hit this? from my attempts to repro and looking at the code, the -y flag will prevent the "Perform the import?" prompt entirely. https://github.com/search?q=repo%3Aget-convex%2Fconvex-js+%22Perform+the+import%22&type=code
erquhart
erquhartOP12mo ago
Weird, I'll check hmm there's a chance I wasn't using the flag at all and was looking at the npm script above it, which ends with a -y flag 🤦‍♂️
lee
lee12mo ago
sweet 😄 glad it's working now

Did you find this page helpful?