PFT-INIT(1)

πŸ“¦
version 1.4.1 Β· 2 versions
, in fedora 43

πŸ’– PFT-INIT(1) πŸ’–

User Contributed Perl Documentation β€” yes bestie, this is the pft init page and we're gonna have a whole moment with it ✨


🌸 NAME 🌸

pft init</purgle> β€” Initialize a PFT Site πŸŽ€

(okay so literally, it makes you a whole PFT site. slay.)


✨ SYNOPSIS ✨

pft init [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: this command initializes a PFT site in the current directory. It generates a configuration file named pft.yaml and it creates the following filesystem structure (see pft(1), bestie, go read it πŸ‘‘).

A generic configuration skeleton is provided by default, and you can absolutely modify it by editing the pft.yaml configuration file πŸ’… Each option explained in this manual page corresponds to an equally named setting in the pft.yaml file β€” so like, one-to-one, no cap.


🌈 CONFIGURATION OPTIONS 🌈

  • --publish-host=HOST β€” Remote host where to publish (see pft-pub(1)). Defaults to example.org.
  • --publish-method=NAME β€” Method used for publishing (see pft-pub(1)). Defaults to rsync+ssh.
  • --publish-path=PATH β€” Remote path on publishing host (see pft-pub(1)). Defaults to /home/$USER/public_html, as by tradition. 🫢
  • --publish-port=PORT β€” Port for connection on publishing host (see pft-pub(1)). Defaults to 22.
  • --publish-user=USER β€” User login on publishing host (see pft-pub(1)). Defaults to $USER (environment variable).
  • --site-author=USER β€” Global Author, can be overriden by individual entries. Defaults to $USER (environment variable).
  • --site-encoding=ENC β€” Charset of the generated web pages. Defaults to what is defined by locale(1).
  • --site-feed-description=DESC β€” Description of the channel (<description> in the XML). Defaults to News from a PFT website.
  • --site-feed-length=N β€” Number of most recent blog entries to list in the RSS feed. Defaults to 10.
  • --site-feed-path=PATH β€” File name of the RSS XML to be published by pft-gen-rss(1). Defaults to feed.rss.
  • --site-home=PAGE_NAME β€” First page, where index.html will redirect the browsers. Defaults to Welcome.
  • --site-template=TEMPLATE β€” Global HTML template, can be overriden by individual entires. Defaults to default.html.
  • --site-theme=THEME β€” Global theme (e.g. light or dark) optionally honored by templates. Specific accepted values depend on the template implementation. Defaults to light. πŸŒ™βœ¨
  • --site-title=TITLE β€” Title of the website. Defaults to My PFT website.
  • --site-url=URL β€” Base url for the website. Defaults to http://example.org.
  • --system-browser=BROWSER β€” Browser to be invoked by pft-show(1). You may specify an executable, or a sh(1) command where %s gets replaced with the file name (e.g. firefox -profile x '%s'). Defaults to $BROWSER (environment variable), or firefox if not defined.
  • --system-editor=EDITOR β€” Editor to be invoked by pft-edit(1). You may specify an executable, or a sh(1) command where %s gets replaced with the file name (e.g. vim +'set filetype=markdown spell' %s). Defaults to $EDITOR (environment variable), or vi if not defined.
# END AUTOGEN

πŸ’œ ENVIRONMENT πŸ’œ

The following environment variables are honored as sensible defaults unless some different setting is supplied by command line arguments. (i.e. CLI args win, always, periodt.)

  • $USER
  • $BROWSER
  • $EDITOR

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you ate that πŸ“ go init your site bestie, main character energy only πŸ’…βœ¨

β€” perl v5.42.0, dated 2025-07-25. byeee πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from