X
Xata4w ago
404

Cannot to run non-interactive xata init

Hi, I want to run the “xata init” command non-interactive with flags, but returns me "Error: The current command required interactivity, but the --no-input flag is being used. Use --help to check if you can pass arguments instead or --yes to use the default answers for all questions. ". The command I executed was "xata init --db https://workspace-1234.us-east-1.xata.sh/db/database-name --sdk --no-input --yes --codegen=src/xata.ts --force". When I remove the --no-input flag asks me " You are working with a Postgres enabled branch. We recommend using the 'next' version of the Xata SDK. Do you want to install the recommended version (@xata.io/client@next)" but even if I say yes and install it, it asks me again and again. Am i missing something?
No description
No description
1 Reply
404
404OP4w ago
I just added bun add to install package every time and fixed :P bun add @Xata.io/client@next && xata init --db https://workspace-1234.us-east-1.xata.sh/db/database-name --package-manager bun --sdk --no-input --yes --codegen=src/xata.ts --force

Did you find this page helpful?