There are a ton of articles and videos on how to do this, such as https://www.motosport.com/blog/how-to-replace-wheel-bearings-on-your-dirt-bike or https://www.youtube.com/watch?v=ArFC3xPHhGA. I've done it without special tools and with a bearing puller, I much prefer using the puller.
I use hammer and a brass rod. a piece of 10mm threaded rod canbe used aswell, just get creative.
Just be aware, if you struggling to remove the bearings, you might have a hard time installing them without messing them up. Watch a few youtube videos.