Pelican Command Cheatsheet
General Commands
-
Create a new site:
bash pelican-quickstart -
Generate site:
bash pelican content -
Regenerate site on changes:
bash pelican content -r -
Preview site:
bash pelican --listen -
Publish site:
bash pelican content -s publishconf.py
Content Management
-
Specify content path:
bash pelican /path/to/content -
Specify output path:
bash pelican /path/to/content -o /path/to/output -
Specify configuration file:
bash pelican /path/to/content -s /path/to/config.py
Debugging and Development
-
Show help:
bash pelican --help -
Verbose output:
bash pelican /path/to/content -v -
Debug output:
bash pelican /path/to/content -D -
Ignore cache:
bash pelican /path/to/content --ignore-cache
Themes and Plugins
-
Specify theme:
bash pelican /path/to/content -t /path/to/theme -
List available plugins:
bash pelican-plugins
Server Commands
-
Start a simple HTTP server:
bash pelican --listen -
Specify server address and port:
bash pelican --listen --port 8000 --bind 127.0.0.1
Miscellaneous
-
Clear output directory:
bash pelican content --delete-output-directory -
Relative URLs:
bash pelican content -r --relative-urls -
Print version:
bash pelican --version