new command create new site, post or page.


Assets are bundled in PuGo. Just it can create new site without any downloads:

pugo new site

It extracts common defaults, starting posts and pages in source and three themes in theme directory in current directory.

pugo new site --doc

When set --doc flag, it extracts doc directory that contains all documentation data. The data is ready to compile to document website. Read Doc command to get more help.


Create new post without title:

pugo new post

Default post markdown file is created in source/[year]/[day-month-hour-minute-second].md

Try with post title:

pugo new post "this is new post"

Now the file is source/


Same usage to new post:

pugo new page
pugo new page "this is new page"