A thirteen-year-old boy has been bashed with a baseball bat after three men broke into his western Sydney home.

Police say the men forced their way inside the Bonnyrigg home around 2:30pm yesterday.

The teenager, who was home alone, was treated for minor injuries at the scene.

Officers say the suspects ran off towards a nearby shopping centre, and are appealing for help from the public in locating them.