When should I let the dealership know I want to lease?

So I now know you should not let the dealership know upfront that you want to lease a new car, so at what point should I let them know that I’m really looking for a lease instead of purchase?


Thanks to any one who can help!