Using tile.openstreetmap.org is subject to the OSM tile usage policy: https://wiki.openstreetmap.org/wiki/Tile_usage_policy
I can promise you that there's no one-line replacement for the work I've done here unless you want to go out and pay for a closed-source product.
They also heavily discourage bulk downloading tiles so I'm not sure if you're that much better off building your own tile server.