Declaring someone an enemy does not automatically lead to war. America considered the USSR an enemy of democracy for 50 years. They never went directly to blows.
I'm specifically referring to the attacks on Iran that started this mess ~6 weeks ago. If the US and Iran agree, but Israel decides to continue bombing campaigns, then this ceasefire will be very short-lived.