poetry take the dependencies from requirement.txt

$ cat requirements.txt|xargs poetry add

Here is what the above code is Doing:
1. We’re using the cat command to read the requirements.txt file and pipe it to the xargs command.
2. The xargs command is used to build and execute commands from standard input.
3. The xargs command is used to execute the poetry add command with the arguments from the requirements.txt file.