You can take a screenshot of a website from the command line with Firefox with:
firefox --headless --screenshot https://example.com
You can also use Chrome/Chromium with the same syntax:
chrome --headless --screenshot https://example.com
h/t https://twitter.com/botherder/status/995277119818293248