Documentation Pages
Command Line Usage #
# Defaults: searches the current directory, outputs to ./_siteeleventy# Equivalent toeleventy --input=. --output=_siteA hypothetical template.md in the current directory would be rendered to _site/template/index.html. Read more at Permalinks.
# Automatically run when input template files change.eleventy --watch# Boot up a browsersync web server to automatically apply changes.# We’ll --watch for you automatically.eleventy --serve# Override the default eleventy project config filename (.eleventy.js)eleventy --config=myeleventyconfig.js# Use only a subset of template typeseleventy --formats=md,html,ejs# Find out the most up-to-date list of commands (there are more)eleventy --helpExample: Same Input and Output #
Yes, you can use the same input and output directories, like so:
# Parse and write Markdown to HTML, respecting directory structure.eleventy --input=. --output=. --formats=mdCareful with
--formats=html here! If you run eleventy more than once, it’ll try to process the output files too. Read more at Common Pitfalls.
