I'd love to initialize a poetry-generated project without going through the interactive shell for versions and dependencies etc.
However, a few attempts of fiddling around with the command line options all failed.
Such as
poetry init --name my_proj --description "my proj" --author john.doe --python 3.9 --dependency "pytest:^6.2.0" --dev-dependency coverage -l MIT
gives me the interactive shell to confirm all the info I provided.
I expect that by giving all the dependencies, the command should generate a pyproject.toml automatically without me entering anything.
Where am I wrong?
As stated in the docs, just add -n or --no-interaction to your command and you will get what you are asking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With