# Create a directory and a project stack new < project name > < template name > --resolver=lts-XX.YY # Create a directory and a project, using the newest snapshot stack new < project name > < template name > # Create a project in the current directory stack new < project name > < template name > --bare

stack new creates a directory and populates it with a template from GitHub. Some templates: commercialhaskell/stack-templates.

If you don't know what template to use, try simple-hpack – it creates a BSD-3 licensed executable with a package.yaml file.