-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Commands
WikiNow provides 14 commands via wn (or wikinow). Built with Typer + Rich for panels, colors, and health bars.
Creates a new project with the full directory structure -- wiki folders, CLAUDE.md schema, Obsidian config, git repo.
$ wn init ml-research
โโโ โโโโโโโโโ โโโโโโโโโโ โโโ โโโโโโโ โโโ โโโ
โโโ โโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโ
โโโ โโ โโโโโโโโโโโโโ โโโโโโโโโ โโโโโโ โโโโโโ โโ โโโ
โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ โโโโโโ โโโโโโโโโ โโโโโ โโโโโโโ โโโโโโโโ
Know it now. Keep it forever.
โญโ Project Created โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Created ml-research โ
โ ~/.wikinow/ml-research โ
โ โ
โ 1. Open project folder in Obsidian โ
โ 2. Start server: wn serve โ
โ 3. Connect: claude mcp add wikinow -- wn serve โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Name rules: must start with a letter or number, then letters, numbers, hyphens, or underscores. No spaces, no special characters.
$ wn init "bad name"
โญโ Init Failed โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Invalid project name 'bad name'. Must start with... โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Switches the active project. All subsequent commands operate on this project.
$ wn use ml-research
โญโ Switched โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ Active project: ml-research โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Shows all projects with the active one marked.
$ wn list
โญโ Projects โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ ml-research (active) โ
โ โ trip-planning โ
โ โ book-notes โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Starts the MCP server over stdio. This is what AI tools connect to.
# Connect from Claude Code
claude mcp add wikinow -- wn serve
# Connect from Codex
codex mcp add wikinow -- wn serveFor Cursor / VS Code, add to .vscode/mcp.json:
{
"mcpServers": {
"wikinow": {
"command": "wn",
"args": ["serve"]
}
}
}Smart ingestion -- auto-detects the source type.
URL:
$ wn ingest https://en.wikipedia.org/wiki/SQLite
โญโ Ingested โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ SQLite โ
โ raw/sqlite.md ยท 12,450 chars โ
โ Start MCP mode to compile into wiki โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
YouTube (auto-detected):
$ wn ingest https://www.youtube.com/watch?v=abc123
Extracts English subtitles via yt-dlp. If no subtitles, falls back to Whisper audio transcription (requires ffmpeg).
Local file:
$ wn ingest paper.pdf
$ wn ingest book.epub
$ wn ingest podcast.mp3
$ wn ingest notes.md
Duplicate detection:
$ wn ingest https://en.wikipedia.org/wiki/SQLite
โญโ Skipped โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Duplicate content -- already ingested. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Full-text search with porter stemming -- "transformers" matches "transformer".
$ wn search "attention mechanism"
โญโ Search: attention mechanism โโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Transformer Architecture high โ
โ concepts/transformer.md โ
โ Self-attention mechanism for sequence modeling... โ
โ โ
โ Attention Is All You Need high โ
โ sources/vaswani-2017.md โ
โ Foundational paper introducing the transformer... โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Reads a wiki article rendered as markdown in the terminal.
$ wn read concepts/transformer.md
โโโโโโโโโโโโโโโโ concepts/transformer.md โโโโโโโโโโโโโ
# Transformer Architecture
...
Path traversal protected -- wn read ../../../etc/passwd is blocked.
Project statistics at a glance.
$ wn stats
โญโ ml-research โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Articles 12 โ
โ ๐ฅ Raw sources 8 โ
โ โ
Compiled 6 โ
โ โณ Pending 2 โ
โ ๐ Links 47 โ
โ ๐ท๏ธ Tags 15 โ
โ โก Contradictions 1 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Health check with a visual health bar (10 blocks).
$ wn lint
โญโ Health Check โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โโโโโโโโโโ 90% โ
โ โ
โ โ Orphan pages (1) โ
โ โ concepts/tokenization.md โ
โ โ
โ โ Uncompiled (1) โ
โ โ new-paper.pdf โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Health score: starts at 100%, loses 5% per issue. Color changes: green (80%+), yellow (50-79%), red (below 50%).
Shows knowledge gaps and open questions from wiki/gaps.md.
Shows current config as syntax-highlighted YAML.
Updates a config value using dot notation. Supports type coercion -- "true" becomes boolean, "20" becomes integer.
$ wn config whisper.model large-v3
โญโ Config Updated โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ whisper.model = large-v3 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
$ wn config search.max_results 20
$ wn config ingestion.auto_compile false
Concatenates overview, index, and all article pages into a single markdown file.
$ wn export
โญโ Exported โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ml-research-export.md โ
โ ~/.wikinow/ml-research/ml-research-export.md ยท 45KB โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Shows the ASCII logo and version number.
Every command that requires an active project shows a clear error if none exists:
$ wn stats
โญโ No Active Project โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Run wn init <name> to create a project first. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ