.Dd January 2, 2026 .Dt SSG-INIT 1 .Os .Sh NAME .Nm ssg-init .Nd initialize a new site .Sh SYNOPSIS .Nm ssg init .Op Fl h | -help .Ar [directory] .Sh DESCRIPTION .Nm creates a new site with the standard directory structure: .Pp .Bl -item -offset indent -compact .It .Pa data/ .It .Pa templates/index.html .It .Pa static/ .El .Pp If no .Ar directory is specified, initializes in the current directory. A sample .Qq hello world .Pa templates/index.html is created if the file does not already exist. .Pp .Ar directory can be any relative path from the current working directory or any absolute path. If any subdirectories are missing along the given path, they will be created with 755 permissions. .Sh OPTIONS .Bl -tag -width Ds .It Fl h , Fl -help Print brief usage information. .El .Sh EXIT STATUS .Nm exits 0 on success, and >0 if an error occurs. .Sh EXAMPLES Initialize a site in the current directory: .Dl $ ssg init .Pp Initialize, build, and serve a new site in a subdirectory: .Dl $ ssg init mysite .Dl $ cd mysite .Dl $ ssg build .Dl $ ssg serve .Pp .Sh SEE ALSO .Xr ssg 1 , .Xr ssg-build 1 , .Xr ssg-serve 1 , .Xr ssg-templates 5