Skip to content
KB4IT Help

Get started with KB4IT

Tutorial Getting started basic
On this page

This tutorial takes you from nothing to a working website in about ten minutes. You need a GNU/Linux computer with Python 3.11 or newer.

Install KB4IT

The quickest way is uv:

uv tool install KB4IT
kb4it --version

The second command prints the version, for example KB4IT 0.8.0. Other ways to install are in Install KB4IT.

Create a knowledge base

A knowledge base is a folder. KB4IT creates it from a theme, here techdoc:

kb4it create techdoc ~/mykb

You get this layout:

mykb/
├── bin/compile.sh      # builds the site with one command
├── config/repo.json    # title, theme and other settings
├── source/             # your Markdown documents go here
└── target/             # the generated website appears here

Open ~/mykb/config/repo.json and change "title" to the name of your site.

Write your first document

Create ~/mykb/source/backup-check.md with any text editor:

---
Author: Ann Lopez
Category: Procedure
Date: 2026-10-03
Tag: backup
---

# Check last night's backups

## Steps

1. Open the backup report.
2. Check that every job ended with status OK.

The block between the two --- lines holds the document's properties. The # line is its title. Everything else is ordinary Markdown.

Build the website

kb4it build ~/mykb/config/repo.json

The last lines tell you what happened:

[WORKFLOW] SUMMARY docs_total=1 compiled=1 skipped=0 invalid=0 ...
[WORKFLOW] URL /home/ann/mykb/target/index.html

Open it

xdg-open ~/mykb/target/index.html

Your document is there, and so are pages you did not write: one for the author Ann Lopez, one for the category Procedure, one for the tag backup, a calendar of events and statistics. That is the idea behind KB4IT: properties become navigation.

Next steps