Install dependencies using a package manager: Yarn 1, pnpm or npm, whichever is installed; if there are more than one installed, the priority is as listed. npm is bundled with Node.js by default.
new
$ hexo new [layout] <title>
새 글(article)을 생성합니다. layout이 준비되어 있지 않다면, Hexo는 _config.yml에 정의된 default_layout을 사용합니다. 만약 title에 공백이 포함된다면 따옴표로 감싸주세요.
generate
$ hexo generate
정적 파일들을 생성합니다.
옵션
설명
-d, --deploy
생성이 종료된 후 deploy 합니다.
-w, --watch
파일의 변경사항을 감시(watch)합니다.
publish
$ hexo publish [layout] <filename>
작성한 내용을 배포합니다.
server
$ hexo server
로컬 서버를 구동시킵니다. 기본적으로 http://localhost:4000/ 를 사용합니다.