Line from 2 points function

I’m unable to find the line function that creates a line between 2 points. I’m trying to do this:

I was expecting to find this function that looks like a line between 2 points (dots) but it doesn’t appear in my menu when I search for line

for some reason you must not have the curve components.
Have you all these components on curve tab ?

Go on preferences and look if you have that.
For some reason many components are plugin !