CRON Job: Variants Appear The Same

I have seen 2 variations of the archive cron job. They both seem to be the same but are expressed differently. Which one should we be using?

#1

php /path-to-matomo/console --matomo-domain=example.com core:archive

#2

php /path-to-matomo/console core:archive --url=https://example.com/