ikiwiki(1)
โจ ikiwiki(1) โจ
okay so bestie, welcome to the manual for ikiwiki โ a wiki compiler, and honestly? it's giving main character energy. this is the page for ikiwiki(1) and we're gonna read it together, no cap. ๐
๐ธ NAME ๐ธ
ikiwiki โ a wiki compiler. that's it, that's the name. short, sweet, iconic. periodt. ๐
๐ SYNOPSIS ๐
ikiwiki [options] source destination
ikiwiki --setup setupfile [options]
๐ฆ DESCRIPTION ๐ฆ
ikiwiki is a wiki compiler. it builds static HTML pages for a wiki, from source in the ikiwiki/Markdown language (or others), and writes it out to destination. so like, it takes your markdown vibes and turns them into a whole website. slay. โจ
note that most options can be shortened to single letters, boolean flags such as --verbose can be negated with --no-verbose, and options such as --verbose can also be spelled like -verbose. so you have options, literally. ๐
๐ MODE OPTIONS ๐
these options control the mode that ikiwiki operates in. pick your fighter. ๐ฎ
--refreshโ refresh the wiki, updating any changed pages. this is the default behavior if no other mode action is specified (but note that--setupis a mode action, and has different default behavior). so if you just run it, this is what happens. lowkey the chill default. ๐--rebuildโ force a rebuild of all pages. everything. from scratch. it's giving factory reset. ๐ฅ--setupsetupfile โ load options from the given setup file. if no other mode action is specified, generate wrappers and rebuild the wiki, as if--rebuild --wrapperswere used. if you only want to build any changed pages, you can use--refreshwith--setup.--changesetupsetupfile โ reads the setup file, adds any configuration changes specified by other options, and writes the new configuration back to the setup file. also updates any configured wrappers. in this mode, the wiki is not fully rebuilt, unless you also add--rebuild.
example, to enable some plugins:
ikiwiki --changesetup ~/ikiwiki.setup --plugin goodstuff
--plugin calendar
--dumpsetupsetupfile โ causes ikiwiki to write to the specified setup file, dumping out its current configuration. like a little config screenshot. ๐ธ--wrappersโ if used with--setup --refresh, this makes it also update any configured wrappers.--cleanโ this makes ikiwiki clean up by removing any files it generated in the destination directory, as well as any configured wrappers, and the.ikiwikistate directory. this is mostly useful if you're running ikiwiki in a Makefile to build documentation and want a corresponding clean target. so satisfying, honestly. ๐งน--cgiโ enable CGI mode. in cgi mode ikiwiki runs as a cgi script, and supports editing pages, signing in, and registration.
to use ikiwiki as a CGI program you need to use --wrapper or --setup to generate a wrapper. the wrapper will generally need to run suid 6755 to the user who owns the source and destination directories. yes, 6755, not a typo, bestie. ๐
--wrapper[file] โ generate a wrapper binary that is hardcoded to do action specified by the other options, using the specified input files and destination directory. the filename to use for the wrapper is optional.
the wrapper is designed to be safely made suid and be run by untrusted users, as a post-commit hook, or as a CGI.
note that the generated wrapper will ignore all command line parameters. it said "no thoughts, head empty" to your args. ๐
--aggregateโ if the plugins/aggregate plugin is enabled, this makes ikiwiki poll configured feeds and save new posts to the srcdir.
note that to rebuild previously aggregated posts, use the --rebuild option along with this one. --rebuild will also force feeds to be polled even if they were polled recently. it's giving "i don't care if you just checked, check again." ๐
--renderfile โ renders a single file, outputting the resulting html. does not save state, so this cannot be used for building whole wikis, but it is useful for previewing an edited file at the command line. generally used in conjunction with--setupto load in a wiki's setup:
ikiwiki --setup ~/ikiwiki.setup --render foo.mdwn
--post-commitโ run in post-commit mode, the same as if called by a post-commit hook. this is probably only useful when using ikiwiki with a web server on one host and a repository on another, to allow the repository's real post-commit hook to ssh to the web server host and manually run ikiwiki to update the web site. very niche, very valid. ๐ซถ--versionโ print ikiwiki's version number. know your version, bestie. ๐
okay so that's the mode tea for now, but bestie we are NOT done โ part 2 has the rest of the options and you're gonna wanna stay for that ๐โจ
โ๏ธ CONFIG OPTIONS โ๏ธ
okay bestie, this is the part where we make the wiki yours. These options configure the wiki. Heads up tho: plugins can add additional configuration options of their own. And plot twist โ all of these options and more besides can also be configured using a setup file. ๐
--wikiname nameโ the name of the wiki. Default is"wiki". yes, justwiki. humble.--templatedir dirโ point this at the directory that templates are stored in. Default is/usr/share/ikiwiki/templates, or another location as configured at build time. If the templatedir is changed, missing templates will still be searched for in the default location as a fallback. Templates can also be placed in the"templates/"subdirectory of the srcdir.
๐จ real talk: if you choose to copy and modify ikiwiki's templates, you will need to be careful to keep them up to date when upgrading to new versions of ikiwiki. Old versions of templates do not always work with new ikiwiki versions. no cap, they will simply not slay.
--underlaydir dirโ the directory that is used to underlay the source directory. Source files will be taken from here unless overridden by a file in the source directory. Default is/usr/share/ikiwiki/basewikior another location as configured at build time.--wrappermode modeโ specify a mode tochmodthe wrapper to after creating it.--wrappergroup groupโ specify what unix group the wrapper should be owned by. This can be useful if the wrapper needs to be owned by a group other than the default. For example, if a project has a repository with multiple committers with access controlled by a group, it makes sense for the ikiwiki wrappers to run setgid to that group.--rcs=svn|git|..,--no-rcsโ enable or disable use of a revision_control_system.
The source directory will be assumed to be a working copy, or clone, or whatever the revision control system you select uses.
In CGI mode, with a revision control system enabled, pages edited via the web will be committed. ๐
No revision control is enabled by default. (bare wiki, no version history, it's giving minimalism)
--svnrepo /svn/wikiโ specify the location of the svn repository for the wiki.--svnpath trunkโ specify the path inside your svn repository where the wiki is located. This defaults totrunk; change it if your wiki is at some other path inside the repository. If your wiki is rooted at the top of the repository, set svnpath to"".--rss,--norssโ if rss is set, ikiwiki will default to generating RSS feeds for pages that inline a blog.--allowrssโ if allowrss is set, and rss is not set, ikiwiki will not default to generating RSS feeds, but settingrss=yesin the inline directive can override this default and generate a feed.--atom,--noatomโ if atom is set, ikiwiki will default to generating Atom feeds for pages that inline a blog.--allowatomโ if allowatom is set, and rss is not set, ikiwiki will not default to generating Atom feeds, but settingatom=yesin the inline directive can override this default and generate a feed.--pingurl URLโ set this to the URL of an XML-RPC service to ping when an RSS feed is updated. For example, to ping Technorati, use the URLhttp://rpc.technorati.com/rpc/ping
This parameter can be specified multiple times to specify more than one URL to ping. ๐ฃ pinging the whole internet
--url URLโ specifies the URL to the wiki. This is a required parameter in CGI mode. don't forget it bestie, it will simply not work.--cgiurl http://example.org/ikiwiki.cgiโ specifies the URL to the ikiwiki CGI script wrapper. Required when building the wiki for links to the cgi script to be generated.--historyurl URLโ specifies the URL to link to for page history browsing. In the URL,[[file]]is replaced with the file to browse. It's common to use ViewVC for this.--adminemail you@example.orgโ specifies the email address that ikiwiki should use for sending email.--diffurl URLโ specifies the URL to link to for a diff of changes to a page. In the URL,[[file]]is replaced with the file to browse,[[r1]]is the old revision of the page, and[[r2]]is the new revision. It's common to use ViewVC for this.--exclude regexpโ specifies a rexexp of source files to exclude from processing. May be specified multiple times to add to exclude list.--include regexpโ specifies a rexexp of source files, that would normally be excluded, but that you wish to include in processing. May be specified multiple times to add to include list. (yes, exclude then include, the plot arcs)--adminuser nameโ specifies a username of a user (or, if openid is enabled, an openid) who has the powers of a wiki admin. Currently allows locking of any page, and banning users, as well as powers granted by enabled plugins (such as[[moderating comments|plugins/moderatedcomments]]andplugins/websetup). May be specified multiple times for multiple admins. ๐
For an openid user specify the full URL of the login, including "http://".
--plugin nameโ enables the use of the specified plugin in the wiki. Note that plugin names are case sensitive.Fooandfooare NOT the same girl.--disable-plugin nameโ disables use of a plugin. For example"--disable-plugin htmlscrubber"to do away with HTML sanitization.
๐ญ okay so disabling htmlscrubber is a choice. It says what it says. That's all I'm gonna say.
--libdir directoryโ makes ikiwiki look in the specified directory first, before the regular locations when loading library files and plugins. For example, if you set libdir to"/home/you/.ikiwiki/", you can install afoo.pmplugin as"/home/you/.ikiwiki/IkiWiki/Plugin/foo.pm". โจ your very own plugin home--discussion,--no-discussionโ enables or disables "Discussion" links from being added to the header of every page. The links are enabled by default.--numbacklinks nโ controls how many backlinks should be displayed at the bottom of a page. Excess backlinks will be hidden in a popup. Default is10. Set to0to disable this feature.--userdir subdirโ optionally, allows links to users of the wiki to link to pages inside a subdirectory of the wiki. The default is to link to pages in the toplevel directory of the wiki.--htmlext htmlโ configures the extension used for generated html files. Default is"html".--timeformat formatโ specify how to display the time or date. The format string is passed to thestrftime(3)function.--verbose,--no-verboseโ be verbose about what is being done. tell me everything, I wanna know ๐ฃ๏ธ--syslog,--no-syslogโ log tosyslog(3).--usedirs,--no-usedirsโ toggle creating output files namedpage/index.html(default) instead ofpage.html.--prefix-directives,--no-prefix-directivesโ toggle new'!'-prefixed syntax for preprocessor directives. ikiwiki currently defaults to--prefix-directives.--w3mmode,--no-w3mmodeโ enable w3mmode, which allows w3m to use ikiwiki as a local CGI script, without a web server. โจ no server needed, we're doing it locally--sslcookieโ only send cookies over an SSL connection. This should prevent them being intercepted. If you enable this option then you must run at least the CGI portion of ikiwiki over SSL.
๐ fr fr, read that twice. turn this on and you're committed to SSL.
--gettime,--no-gettimeโ extract creation and modification times for each new page from the the revision control's log. This is done automatically when building a wiki for the first time, so you normally do not need to use this option.--set var=valueโ this allows setting an arbitrary configuration variable, the same as if it were set via a setup file. Since most commonly used options can be configured using command-line switches, you will rarely need to use this. it's the emergency exit of config options ๐ช--set-yaml var=valueโ this is like--set, but it allows setting configuration variables that use complex data structures, by passing in a YAML document.
๐ EXAMPLES ๐
ikiwiki --setup my.setup
Completely (re)build the wiki using the specified setup file. the full glow-up, every page rebuilt.
ikiwiki --setup my.setup --refresh
Refresh the wiki, using settings from my.setup, and avoid rebuilding any pages that have not changed. This is faster. โก we love efficiency.
ikiwiki --setup my.setup --refresh --wrappers
Refresh the wiki, including regenerating all wrapper programs, but do not rebuild all pages. Useful if you have changed something in the setup file that does not need a full wiki rebuild to update all pages, but that you want to immediately take effect. (the "I changed one setting and I want it NOW" special ๐ )
ikiwiki --rebuild srcdir destdir
Use srcdir as source and build HTML in destdir, without using a setup file.
ikiwiki srcdir destdir
Use srcdir as source to update changed pages' HTML in destdir, without using a setup file.
๐ธ ENVIRONMENT ๐ธ
CCโ this controls what C compiler is used to build wrappers. Default is'cc'.CFLAGSโ this can be used to pass options to the C compiler when building wrappers.
๐ SEE ALSO ๐
๐ซถ AUTHOR ๐ซถ
Joey Hess <joey@ikiwiki.info>
and that's the whole page bestie, we made it ๐ this was ikiwiki(1) โ the version and date live in that lil footer line at the bottom, the source is ikiwiki itself, and honestly? iconic documentation. go forth and build ur wiki. periodt ๐โจ๐ฆ
๐ฆ where this page comes from
- alpine 3.24: ikiwiki-doc 3.20260201-r0 ยท GPL-2.0-or-later
- debian bookworm: ikiwiki 3.20200202.3-1 ยท GPL-2.0-or-later
- debian trixie: ikiwiki 3.20250501-1 ยท GPL-2.0-or-later
- fedora 43: ikiwiki 3.20250501-2.fc43 ยท GPL-2.0-or-later AND BSD-2-Clause
- fedora 44: ikiwiki 3.20250501-3.fc44 ยท GPL-2.0-or-later AND BSD-2-Clause
- nixos 26.05: ikiwiki 3.20200202.3
- nixpkgs unstable: ikiwiki 3.20200202.3
- ubuntu jammy: ikiwiki 3.20200202.3-1 ยท GPL-2.0-or-later
- ubuntu noble: ikiwiki 3.20200202.3-1 ยท GPL-2.0-or-later
- ubuntu questing: ikiwiki 3.20250501-1
- ubuntu resolute: ikiwiki 3.20260201-3 ยท GPL-2.0-or-later
- ubuntu stonking: ikiwiki 3.20260201-3 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms