New

new command create new site, post or page.

Site

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.

Post

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/this-is-new-post.md.

Page

Same usage to new post:

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