Skip to main content
All commands use the kiwifs binary. Run kiwifs --help to list available commands, or kiwifs <command> --help for details on a specific command.

Core commands

Start the KiwiFS HTTP server and serve your knowledge base.
Protocol flags
Create a new knowledge directory with an optional template.
Templates provide a starter directory structure with sample files. Use blank if you want an empty knowledge base.
Start a Model Context Protocol server over stdio transport. Use this to connect KiwiFS to AI agents and LLM tools.
Run KiwiFS directly within the MCP server process. Best for local development.
Mount a remote KiwiFS server as a local filesystem using FUSE.
FUSE must be installed on your system. On macOS, install macFUSE. On Linux, install fuse3.

Data commands

Import data from databases, files, or third-party services into your knowledge base.
Supported sources
Use --dry-run first to preview which files will be created before writing anything.
Export structured data (JSONL, CSV, Parquet) or render markdown into publication formats (PDF, HTML, slides, static site).
Data formatsDocument formats — use --format pdf, html, slides, or site with --path pointing at a file or directory:
See Data export and Document export for REST and MCP equivalents.
Run a Dataview Query Language (DQL) query against your knowledge base.
Run aggregation queries against frontmatter fields.

Maintenance commands

Display a dashboard summarizing knowledge health, coverage, and engagement metrics (page views and failed searches).
Check your knowledge base for issues such as broken links, missing frontmatter, or invalid YAML.
Scan for stale pages, orphans, broken links, duplicate titles, and other hygiene issues. Exits with code 1 when error-severity issues are found.
Rebuild the SQLite FTS5 index from markdown files on disk. When vector search is configured, also rebuilds the vector index unless --fts-only is set.
Reindexing locks writes briefly. Run this during low-traffic periods on production servers.
Create and regenerate computed view files (kiwi-view: true in frontmatter).

Rules, tokens, benchmarks, clipping, and memory

View or export the markdown rules file that steers agents across harnesses.
Remote operations accept --remote and --api-key like other commands.
Create scoped keys (read/write/admin) for automation or per-space access.
Tokens append to .kiwi/config.toml; the plaintext key is shown once on create.
Runs in a temporary directory with an in-process stack to benchmark writes, bulk writes, reads, and search.
Outputs a markdown table suitable for issues or release notes.
Flags: --title, --tags, --folder, --actor (defaults to clipper).
Summarizes episodic files vs merged pages for merge pipelines (no LLM consolidation).

KiwiFS Cloud commands

Log in via OAuth device flow. Credentials are stored in ~/.kiwifs/credentials.json.
Removes ~/.kiwifs/credentials.json.
Prints the email and display name for the stored Cloud session.
Generate MCP server configuration for connecting an agent to a KiwiFS Cloud workspace.
Download and install the latest kiwifs binary from GitHub Releases.
Replaces the currently running binary in place.

Backup and restore

Push your knowledge base to a git remote for backup.
By default, kiwifs backup fetches and rebases onto the backup branch before pushing. See Backup sync for configuration, opt-outs, and conflict handling.
Clone a knowledge base from a git remote.
Last modified on May 31, 2026