Generate static files with Hexo is quite easy and fast.
$ hexo generate
Hexo can watch for file changes and regenerate files immediately. Hexo will compare SHA1 checksum of files and only write if files changed.
$ hexo generate --watch
To deploy after generating, you can run one of the following commands. Both of them are equaled.
$ hexo generate --deploy