I have run out of ideas. How could I generate sitemap.xml using terminal commands? I have admin controller and action sitemap, but these are available only for logged in administrators. When i run admin/sitemap it outputs all content to browser.
I took an idea from this topic, but I need sitemap as file, not as dynamic page, because it will contain huge amount of records (512mb php memory limit was not enough)… And I need to generate it using cron.