Build the site from its sources and put the results into the destination directory.
clean
Remove the destination directory.
docs
It requires the jekyll-docs plugin to be installed.
doctor, hyde
Search site and print specific any deprecation or configuration issues.
help [COMMAND]
Show the help message, optionally for a given subcommand.
import
This command allows one to import blog content from various resources as markdown files into the Jekyll ./_post/ and ./_drafts/ structure. It requires the jekyll-import plugin to be installed.
new [PATH]
Creates a new Jekyll site scaffold in PATH.
new-theme
Creates a new Jekyll theme scaffold
s, serve, server
Serve the site locally.
Plugins like jekyll-compose can provide more commands then documented here.
Options
There are some general flags to control Jekyll's behavior. The commands can be controlled further with additional options which are described in their respecitive manual pages.
-s, --source [DIR]
Source directory (defaults to ./). This can also be set in _config.yml via the source: option.
-d, --destination [DIR]
Destination directory (defaults to ./_site). This can also be set in _config.yml via the destination: option.
-p, --plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]
Plugins directory (defaults to ./_plugins).
--safe
Safe mode (defaults to false). This disables custom plugins, and ignores links. This can also be set in _config.yml via the safe: option.
--layouts DIR
Layouts directory (defaults to ./_layouts).
--profile
Generate a Liquid rendering profile.
-h, --help
Show the help output.
-v, --version
Print the name and version
-t, --trace
Show the full backtrace when an error occurs.
Files
_config.yml
The main configuration is done by default in the file _config.yml. This file can control both Jekyll's behavior (see OPTIONS) and site/theme configuration variables. If the configuration shall be split or a non-default file shall be used one can use the --config switch to define all configuration files.
See <https://jekyllrb.com/docs/configuration/options/> and <https://jekyllrb.com/docs/configuration/default/>.
Environment
JEKYLL_ENV
This environment variable defaults to development and can be checked during build via conditional statements to influence the output for example. It usually only affects the build and serve commands. The other well known value is production, but really any value can be assigned.
See <https://jekyllrb.com/docs/configuration/environments/>.
Releases
7 releases since Debian 7 (Wheezy); the text changed 1 time.
--destination since Debian 11 (Bullseye);
--help since Debian 11 (Bullseye);
--layouts since Debian 11 (Bullseye);
--plugins since Debian 11 (Bullseye);
--profile since Debian 11 (Bullseye);
--safe since Debian 11 (Bullseye);
--source since Debian 11 (Bullseye);
--trace since Debian 11 (Bullseye);
-d since Debian 11 (Bullseye);
-h since Debian 11 (Bullseye);
-p since Debian 11 (Bullseye);
-s since Debian 11 (Bullseye);
-t since Debian 11 (Bullseye);
-v since Debian 11 (Bullseye).
--base-url until Debian 10 (Buster);
--dbname until Debian 10 (Buster);
--file until Debian 10 (Buster);
--kramdown until Debian 10 (Buster);
--limit_posts until Debian 10 (Buster);
--no-server until Debian 10 (Buster);
--paginate until Debian 10 (Buster);
--pass until Debian 10 (Buster);
--permalink until Debian 10 (Buster);
--rdiscount until Debian 10 (Buster);
--redcarpet until Debian 10 (Buster);
--server until Debian 10 (Buster);
--time until Debian 10 (Buster);
--url until Debian 10 (Buster);
--user until Debian 10 (Buster).