Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
mark van tilburg edited this page May 9, 2015 · 11 revisions

There are several ways Pretzel can be used, with corresponding commands

Create

Usage: pretzel create [options]
Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --source=c:\MySite or --s=c:\MySite. Defines the path to site directory to process. (default ./)
  • --withproject. If presents includes a layout VS Solution, to give intellisence when editing razor layout files.
  • --wiki. If presents creates a wiki instead of a blog (razor template only).

Create is for creating a site based on one of the available boilerplates. The default is the blog using liquid engine.

Bake

Usage: pretzel bake [options]
Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --source=c:\MySite or --s=c:\MySite. Defines the path to site directory to process. (default ./)
  • --destination=c:\Mystite\_processedsite. Defines the path to the processed site directory. (default _site)
  • --drafts. Add the posts in the drafts folder.
  • --cleantarget. Deletes the target repository (_site by default).

Bake is for a once-off generation of the site.

Taste

Usage: pretzel taste [options]
Options:

  • --template=liquid or --t=liquid. Defines the template engine to use. Only liquid and razor are supported. Default: liquid.
  • --source=c:\MySite or --s=c:\MySite. Defines the path to site directory to process. (default ./)
  • --destination=c:\Mystite\_processedsite. Defines the path to the processed site directory. (default _site)
  • --port 5000 or --p 5000. Sets port to custom value; Default: 8080.
  • --nobrowser. Do not launch a browser.
  • --cleantarget. Deletes the target repository (_site by default).

Taste is for testing a site locally using a browser - make a change, and Pretzel should detect the file changes and regenerate the site.

Import

Usage: pretzel import [options]
Options:

  • --import=wordpress or --i=wordpress. Defines the format of the file to import. Supported values are wordpress and blogger.
  • --file=import.xml or --f=import.xml. Defines the file to import.
  • --source=c:\MySite or --s=c:\MySite. Defines the path to site directory to process. (default ./)

Import is for importing an existing blog to pretzel files.

Version

Usage: pretzel version

Displays the current pretzel version used.

Hungry

Usage: pretzel hungry

For use only when hungry.