This way is unlikely to force peace, Iran has not made official statement to declare war though. Instead it will likely lead to a long war between Iran and US/Israel and US/Israel can't win a long war.
The worse is, this attack will lead Iran to develop nukes very soon. Trump didn't learn the lesson of history. North Korea sped up its nuclear program after Bush's infamous "axis of evil" speech (Iraq, north korea and Iran) and attacked one of evils later. 3 years later North korea successfully tested its nuke. If "axis of evil" speech made north korea desperate to develop nukes, attacking Iran will definitely make Iran determined to make nukes.
Link: https://www.theguardian.com/us-news/2025/jun/18/trump-republicans-iran-conflict