Re-running archive.php (after deleting piwik_archive_*)

Some aspects in Piwik call for deleting the piwik_archive_* tables. The docs always state that these archives will be recreated when a user visits once again loads the site in a browser.

However, Piwik docs state that sites with medium or high traffic should instead use archive.php.

After deleting the archive tables, rerunning archive.php simply says that there is nothing to do. How can I properly regenerate the archive tables from the command line?

in archive.php add the parameter --force-all-periods ?

--force-all-periods uses seconds and defaults to the past 7 days. Specifying that it should re-archive the past 6 months (or more) in seconds can lead to a very big number.

Isn’t there a better way?