Install the kribble command, sign in, and read, edit, pull, push and publish notes from the terminal
kribble is Kribble's command-line tool. It reads and changes notes as markdown, pulls folders as files to work on with any editor and pushes them back, pushes a repository's docs, publishes sites, and connects AI agents and editors to Kribble. It is one file with no dependencies, for macOS, Linux and Windows.
The CLI comes from getkribble.com. Paste one line into a terminal:
curl -fsSL https://getkribble.com/install.sh | sh
It installs kribble in ~/.local/bin, or /usr/local/bin when run as root. Set KRIBBLE_INSTALL_DIR to put it elsewhere. If the directory isn't on your PATH, the script says so.
irm https://getkribble.com/install.ps1 | iex
It installs kribble.exe in %LOCALAPPDATA%\Programs\kribble (or KRIBBLE_INSTALL_DIR) and adds that folder to your PATH; open a new terminal to pick it up.
If you use a Kribble server, you can install from its address instead. Open CLI & agents (at the bottom of the sidebar, or in your user menu) for the command with your server's address filled in, or type it yourself:
curl -fsSL https://kribble.example.com/install.sh | sh
irm https://kribble.example.com/install.ps1 | iex
This still installs the CLI from getkribble.com, in the same place, and then sets it up for that server, so kribble login needs no address. It is the same as setting KRIBBLE_SERVER for getkribble.com's installer:
curl -fsSL https://getkribble.com/install.sh | KRIBBLE_SERVER=https://kribble.example.com sh
$env:KRIBBLE_SERVER = "https://kribble.example.com"; irm https://getkribble.com/install.ps1 | iex
Installed from getkribble.com alone, the CLI doesn't know your server yet: sign in the first time with kribble login --server https://kribble.example.com. You don't need a server for everything: a published documentation site works without one (see AI agents).
Check the installation with kribble version.
kribble login
The CLI shows a code and opens your server in the browser. Check that the page shows the same code, then choose:
Organization: All my organizations (including ones you join later) or only one.
Access: Read and write notes, or Read notes only.
Click Approve, and the terminal says Signed in. The CLI now acts as you, with your permissions in each organisation.
The login is an access token named "kribble CLI" with the computer's name. It is listed, and can be revoked, under Access Tokens in the settings of the organisation you chose, or of your personal organisation when you chose all of them. kribble logout forgets the token on this computer but doesn't revoke it.
Options of kribble login:
Option | Meaning |
|---|---|
| The server to sign in to, when the CLI doesn't know it yet |
| Ask for read access only |
| Use an access token instead of the browser; |
| Print the approval link instead of opening a browser, for example over SSH |
| Sign in to this profile |
kribble status shows the profile, server, account and versions in use, and whether the login still works.
These commands work without a login:
kribble fmt, kribble check, kribble convert, kribble drawings and kribble validate, which only read local files.
kribble search --local, which searches markdown files on this computer (see Search markdown files offline below).
kribble mcp docs URL and kribble mcp install --docs URL, which read a public documentation site.
kribble skill, kribble help, kribble version, kribble profile and kribble mcp status.
kribble update and kribble extension install, which download from getkribble.com and need no server.
Everything else talks to the server and needs a login.
Each saved server or account is a named profile, such as work and personal.
kribble profile add work --server https://kribble.acme.com # sign in to a new profile
kribble profile # list them (--json for scripts)
kribble profile use work # the one commands use from now on
kribble ls --profile personal # another one for a single command
kribble profile rename work acme
kribble profile remove acme
kribble profile use also switches the AI apps set up with kribble mcp install, from their next Kribble call. A folder pulled with kribble pull keeps using the profile it came from. The desktop app shares the same profiles.
The profiles and their tokens are saved in kribble/config.toml in your user configuration folder (~/.config on Linux, ~/Library/Application Support on macOS, %AppData% on Windows), readable only by you.
Variable | Effect |
|---|---|
| The server, instead of the saved one |
| The access token, instead of the saved one |
| The profile, instead of the saved default |
| Another settings file |
| Where |
KRIBBLE_URL and KRIBBLE_TOKEN are the way to run the CLI in CI or on a server: create a token under Access Tokens (see AI agents for the scopes) and set both.
A note's path is Space/Folder/Note, with names as Kribble shows them, spaces and capitals included. Quote paths in the shell. Every command that takes a note also takes its id. When your login covers several organisations and two spaces share a name, kribble pull, push, export and init take --org (the organisation's name or id); elsewhere use the space's id (kribble ls --json shows it).
kribble help lists every command; kribble help COMMAND (or kribble COMMAND -h) explains one and its options. Every command takes --profile NAME, and options can go before or after the other arguments.
Command | What it does |
|---|---|
| Lists your spaces, or the notes in a space or folder; |
| Prints a note as markdown; |
| Searches notes, with the same operators as the search box (see Search below) |
| Searches the markdown files in a directory, without a server |
| Replaces exact text in a note: the safest way to change one |
| Replaces a note's whole content from a file or standard input |
| Creates a note (or with |
| Jots a note down: by default into a Quick notes space in your personal organization, made the first time |
| Moves or renames a note; DESTINATION is the full new path, or |
| Changes a note's or folder's name, description, icon (a Lucide icon name) or place among its siblings |
| Deletes a note; |
| Lists a note's versions, with who saved them and through which token |
| Opens a note in the browser, or with |
| Shows what changed in a note, by default its latest change |
| Lists notes changed lately, by default through this computer's token; |
| Lists the docs folders in git under review, with what changed since their last commit |
| Stages a changed file of a docs folder, unstages it, or puts it back as the last commit has it |
| Pulls a space, folder or note as markdown files (see Working copies below) |
| Pushes a working copy's changes, or a repository's docs folder |
| Writes the |
| Writes a space or folder as markdown files, to move it into a repository |
| Lists a note's open comment threads; |
| Comments on a note, or with |
| Replies to a thread, and resolves it with |
| Resolves a thread, or reopens it |
edit and write print a diff of the note after saving (--quiet doesn't). For text over several lines, edit takes --old-file and --new-file. --old must match exactly once; copy it from kribble read, or pass --all.
To replace a note without losing someone else's change, pass the version you read:
kribble read "Engineering/Plans/Q3" --json # {"info": {"version": 7, …}, "markdown": …}
kribble write "Engineering/Plans/Q3" new.md --base-version 7
If the note changed in the meantime, the write fails; read it again and redo your change. --force overwrites whatever is there.
A note moves anywhere you can write. Within its organization it simply moves, keeping its id, comments and history. To another organization (--org picks it when a space name is in several), or to another server (--server names the profile signed in to it, or its address), it's copied, with the notes under it and its images, and the original is deleted: the copy has a new id, and comments and history stay behind.
echo "Ask about the offsite" | kribble quick # → Quick notes/Ask about the offsite
kribble mv "Quick notes/Ask about the offsite" "Team/Planning/"
kribble mv "Drafts/Spec" "Docs/Specs/Spec v2" --server work
In comment commands, a TEXT of - reads the text from standard input. @Name in a comment notifies that person. See Comments and reviews.
kribble search takes the same query as the search box in the app, operators included: in:, org:, by:, updated:, title:, type:, sort:, "phrases" and -exclusions (Search lists them all). --org NAME is the same as org:NAME. Put the query in single quotes, so that the shell leaves the double quotes alone and doesn't read < and > as redirections:
kribble search 'rollback'
kribble search 'deploy in:Engineering by:me updated:<30d'
kribble search '"rate limit" -draft' --limit 50
kribble search 'updated:<1d sort:recent' # operators alone: what changed in the last day
For each note it prints the name and path, then the headings that matched with the text around each match. --limit sets how many notes it shows (20 by default, at most 100), and --json prints the results with each note's id, path and the blocks that matched. If an in: or by: matches no space, folder or person, the command fails and says which, instead of printing nothing. Dates in updated: count in UTC here; the app uses your browser's time zone.
kribble search --local searches the markdown files under a directory instead of the server: a folder you pulled, or a repository's docs. It needs no server and no sign-in, and works offline. It matches your words as you type them; it doesn't find other forms of them the way the server's search does (see Search).
kribble search --local 'rollback' # under the current directory
kribble search --local --dir docs 'title:install' # under docs/
It reads every .md and .markdown file under the directory, leaving out hidden directories (such as .git and .kribble), node_modules and _assets, so there is no index to keep up to date. A file's title is the name in its front matter, else a leading # Title, else the file name. Matches in the title count most, then headings, the description, the folder names and the text. Small typos are forgiven, words match the words they start, and code identifiers are found by their words, as on the server.
Each match is printed with the file and line of the section that matched best (docs/Deploying.md:42), its heading and the text around the match, so editors and agents can jump straight there. The query takes the same syntax, with these differences:
in: names folders under the directory: in:Guides or in:"Guides/Setup".
updated: and sort: use the files' modification times, in this computer's time zone.
type:folder finds nothing, as only files are searched.
by: is ignored, with a message: files don't say who wrote them.
Command | What it does |
|---|---|
| Lists the published sites you can reach, or the one of a space, folder or note, with URL and build status |
| Lists where sites can be published to, and what each target takes |
| Publishes a space, folder or note as a site, or builds it again if it is published, changing the settings that differ. Without PATH it follows the |
| Builds a docs folder into a static site on this computer, without a server or a login (default output: |
| Previews a docs folder as its site, building it again and reloading the browser when a file changes |
All the options, publishing from CI and building without a server are in Publishing sites.
Command | What it does |
|---|---|
| Rewrites Kribble markdown in its canonical form: to standard output, in place with |
| Reports markdown that Kribble would change or drop when it saves it; exits with status 1 if there is any |
| Converts Kribble markdown to a Kribble document as JSON, or back. The JSON is the format notes are stored in ( |
| Draws a note's drawings and diagrams (from markdown or document JSON) as SVG, as the editor and published sites show them: a JSON object from block ID to |
| Checks Kribble document JSON against the format and lists the problems; exits with status 1 if any is an error |
Run kribble check on markdown you wrote or generated before you write it into a note or push it. The format itself is described in Writing notes, and kribble skill prints a summary.
Command | What it does |
|---|---|
| Signs in (see above) |
| Forgets the saved access token |
| Shows the server, account and versions in use; inside a working copy, its local changes first |
| Saves the server address without signing in (the installer uses it) |
| Prints the CLI's version, and the server's when signed in |
| Shows help |
| Manages profiles (see above) |
| Updates the CLI and the installed editor extensions from getkribble.com (see Updates below) |
Command | What it does |
|---|---|
| Connects Claude Code, Claude Desktop and Codex to Kribble, or with |
| Removes that again; shows what is set up, documentation sites included |
| The MCP servers the apps start (stdio) |
| Prints the guide for AI agents, or installs it where agents look for it: a skill for Claude Code ( |
| Removes the skill (or the |
| Installs the Kribble markdown editor into VS Code and its forks, JetBrains IDEs or Visual Studio |
AI agents explains mcp and skill.
For work across several notes, such as restructuring a folder or renaming a term everywhere, pull the notes as files, change them with any tool, and push the changes back.
kribble pull "Engineering/Plans" plans # notes → plans/*.md ("Engineering" alone: the whole space)
cd plans
# edit, grep, rename, add files…
kribble status # which files you changed
kribble diff # your changes, as a diff
kribble push # saves them in Kribble
The directory must be new or empty; without DIR, it is named after the folder. A pulled folder is a working copy: .kribble/ inside it records which file is which note and the versions you pulled. Inside it, kribble diff [FILE…] shows your local changes and kribble pull (with no arguments) brings in changes made in Kribble since.
Each note is a .md file that starts with front matter:
---
name: Rollout plan
description: How we move every region
icon: rocket
order: 2
---
The note's content, in Kribble markdown.
name, description, icon (a Lucide icon name) and order (the place among its siblings) are the note's properties. Change them to rename, describe or reorder notes; after a push the file is renamed to follow the note's name.
A folder is a directory, with a _folder.md that holds only its front matter (without one, the folder is named after the directory). Only folders hold notes: a Setup/ directory next to Setup.md is a folder next to that note.
Images and attachments are in _assets/ next to the notes that use them, linked as .
Links between notes are relative links to the files, such as [the plan](../Plans/Rollout plan.md); put the path in <…> when it has spaces.
A new .md file becomes a new note, and a new directory a new folder; images it links to are uploaded. Deleting a file deletes its note only if you push with --delete; otherwise the note stays in Kribble.
When notes changed in Kribble since you pulled, kribble pull and kribble push merge those changes with yours, line by line. Where both sides changed the same lines, the file gets conflict markers:
<<<<<<< yours
Your version of the lines
=======
The version in Kribble
>>>>>>> kribble
Edit the file to keep the right text, remove the markers, and push again. A push refuses files that still have markers. A note deleted in Kribble that you edited locally is kept, and your push creates it again.
A project's docs can live in its repository as markdown, next to the code, and be pushed to Kribble, where people read and comment on them. The files have the same format as a working copy. A kribble.toml in the docs folder says where they go: a folder in a space, or a whole space. kribble init writes it. In a terminal it asks, step by step, choosing with the arrow keys and Enter:
The organisation.
The space. Typing filters the list; the first row, New space, takes what you typed as the name of a space to create (the first push creates it).
The folder in the space, or nothing for the whole space.
Whether to set up publishing the docs as a site too. If so: where to (this server, or a target the operator set up, and which one), the site's title and base URL (empty for the defaults), and the slug and who can read it (this server) or the directory (local and SSH targets). See Publishing sites.
At the end it says how to add a share picture of your own. Esc or Ctrl+C stops without writing anything. In a script or CI, pass the place instead:
kribble init docs --to "Engineering/SDK" --org Acme # or --to "SDK docs" for a whole space
# docs/kribble.toml
folder = "Engineering/SDK"
org = "Acme" # only needed when your login reaches several organisations
kribble push docs --dry-run # what would change
kribble push docs # or: kribble push docs --to "Engineering/SDK" --org Acme
The space or folder doesn't have to exist: the first push creates it (a new space needs permission to create spaces in the organisation). Pushed into a whole space, the space belongs to the repository: its notes are read-only in Kribble and nothing new can be added at its top level. A space that holds a folder another push manages can't be pushed into whole.
A push updates the notes in place, so their comments and history stay. It creates notes for new files, deletes notes whose files are gone, uploads the images the markdown links to, and prints a diff of each changed note (-q leaves the diffs out). It warns about markdown Kribble would change, so run kribble check on the files first.
The folder (or space) then belongs to the repository: Kribble shows the repository and commit it came from, and its notes are read-only in Kribble, though people can still comment. Read the comments with kribble comments, fix the markdown in the repository, and reply to the threads.
In CI, set KRIBBLE_URL and KRIBBLE_TOKEN and run kribble push docs (or kribble push from the repository's root: it finds docs/kribble.toml). To publish the docs as a site too, add a [deploy] table to kribble.toml and run kribble deploy --wait after the push: see Publishing sites.
A docs file can pull in another markdown file, or part of one, with a line of its own, as in VitePress. The text around it stays yours:
---
name: The document format
description: "A note's content as JSON"
---
The format every note is stored in.
<!--@include: ../../spec/document.md-->
The path is relative to the file the line is in, and can lead out of the docs folder: a specification or a README kept elsewhere in the repository is written once, and published with the docs.
<!--@include: ./setup.md{3,20}--> takes lines 3 to 20 ({3,} from line 3 to the end, {,20} up to line 20). Starting from line 2 leaves out a title the page already has.
<!--@include: ./setup.md#install--> takes the lines between <!-- #region install --> and <!-- #endregion install --> in that file.
The included file's front matter is left out, and its includes are followed too.
Links in the included text keep working: a link to a file another docs page includes goes to that page, a file it links to (an image, a JSON schema) comes along, and a link to something the docs don't hold (a folder, code) becomes plain text.
kribble push, kribble build, kribble serve and kribble check put the text in place; the line itself never reaches Kribble. kribble check reports a problem in included text at its own file and line, and kribble fmt leaves include lines as they are. The editor extensions show an include line as a box saying what it includes, and keep it. These docs' Specification is made this way, from the repository's spec/ folder.
kribble export "Engineering/SDK" docs # the files, and docs/kribble.toml
git add docs && git commit -m "Docs from Kribble"
kribble push docs --adopt
--adopt ties the existing folder (or space) to the files: its notes keep their comments and history, and notes that aren't in the push are deleted. Later pushes need no flag.
kribble update
The CLI updates to the latest version on getkribble.com, whichever server you use. --force reinstalls even when the versions match. An update also refreshes the kribble skill where you installed it in your home directory (kribble skill --install).
The CLI is often newer than your server. That's fine: a newer CLI works with an older server. When you sign in to a server that is newer than the CLI, kribble login prints a note asking you to run kribble update. kribble status shows both versions.
It updates the editor extensions too, but only where they are installed: each VS Code (or Cursor, Windsurf, VSCodium) that has Kribble Markdown, and each JetBrains IDE whose plugins folder has it. Editors without it are left alone. A JetBrains IDE loads the new version when it restarts; one too old for the new version keeps the one it has.
It also rewrites the kribble skill where it's installed in your home directory (~/.claude/skills/kribble, ~/.agents/skills/kribble). It prints a line for each editor and each skill: what it updated, what was already up to date, and which skill isn't installed and how to add it.
The Kribble markdown editor works inside your IDE, with the same blocks, callouts and tables as in Kribble. It is handy for a repository's docs.
kribble extension list # the editors kribble finds
kribble extension install vscode # or: cursor, windsurf, vscodium
kribble extension install jetbrains # every JetBrains IDE it finds
kribble extension install rider # or one: idea, pycharm, goland, webstorm, clion, …
kribble extension install visualstudio # Visual Studio 2022 and newer, on Windows
VS Code and its forks: the CLI uses the editor's command-line tool (code, cursor, windsurf or codium), on your PATH or where the editor installs it (in the app on a Mac, in its install folder on Windows). After installing, open a .md file and choose Reopen Editor With… → Kribble.
JetBrains IDEs, 2026.2 or newer: they are found by their settings folders, which an IDE creates when it first starts, so they needn't be on your PATH. Restart the IDE to load the plugin. Close the IDE first if the install fails.
Visual Studio 2022 or newer, on Windows: every copy installed is found (Community, Professional, Enterprise, previews) and gets the extension. Close Visual Studio first; when it starts again, .md files open in Kribble. Open With… → Source Code (Text) Editor opens one as text, and Set as Default there changes which editor .md files open in. It needs the Microsoft Edge WebView2 Runtime, which Windows 11 and Visual Studio have. Preview Site and Build Site aren't in it yet: run kribble serve and kribble build instead.
The note's name, description and icon are above the text, as in Kribble: they are the file's front matter, and editing them changes only those lines. Without front matter, the name shows the file's name, which kribble push uses; typing one adds front matter. Other front matter keys and comments stay as they are.
kribble update keeps them up to date (see Updates).
Besides editing, the VS Code and JetBrains ones show a docs folder as its site, with the CLI's `kribble serve` and `kribble build`:
Preview Site (VS Code: the preview button above a Kribble editor, the command palette, or a file's or folder's right-click menu; JetBrains: the right-click menu of a file, an editor tab or a folder) builds the site of the docs folder the file is in, the nearest folder up with a kribble.toml, and shows the page of the file you are editing. In VS Code it opens beside the editor (the Kribble › Site Preview: Open In setting can send it to your browser instead); JetBrains IDEs open it in your browser. It builds again and reloads whenever you save. Stop Site Preview stops it, and closing the editor does too.
Build Site builds the site into the folder's _site, as kribble build does.
The extensions download from getkribble.com, so kribble extension install needs no server or login. getkribble.com is also a JetBrains plugin repository: add https://getkribble.com/downloads/jetbrains/updatePlugins.xml under Settings → Plugins → the gear icon → Manage Plugin Repositories, and the IDE installs and updates Kribble Markdown itself.