Refactored BuildPageCommand
Added command to generate all pages