Fetch Wikipedia articles and display in terminal
wiki "article" # Fetch article
wiki -s "Section" "article" # Extract section (fuzzy match)
wiki -ls "article" # List all sections
wiki --search "query" # Search Wikipedia
wiki --random # Fetch random article
wiki --featured # Fetch today's featured article
wiki --featured-date DATE # Fetch featured article for specific date
wiki --most-read # Fetch yesterday's most-read articles
wiki --most-read-date DATE # Fetch most-read for specific date
wiki --news # Fetch today's "In the news" stories
wiki --raw "article" # Raw Markdown output
wiki "article" -o file.md # Save to file
wiki "https://wikipedia.org/wiki/..." # Direct Wikipedia URL
wiki --version # Show version
-s "hist" matches "History")-opip install wiki-client or uvx wiki-client# Get an article
wiki "Unix shell"
# Get a specific section
wiki -s History "Unix shell"
# List sections before extracting
wiki -ls "Bash (Unix shell)"
# Search for articles
wiki --search "functional programming"
# Get a random article
wiki --random
wiki --random --raw
wiki --random -o random_article.md
# Get today's featured article
wiki --featured
wiki --featured --ls
wiki --featured -o featured.md
wiki --featured -s "Section" # Extract section from featured article
wiki --featured-date 2025-03-23 # Fetch for specific date
wiki --featured-date 2025-03-23 -s "Section" # Extract section from specific date
# Get most-read articles
wiki --most-read
wiki --most-read --ls
wiki --most-read -o most_read.md
wiki --most-read -s "Eiffel Tower" # Extract specific article from list
wiki --most-read-date 2026-03-23 # Fetch for specific date
# Get "In the news" stories
wiki --news
wiki --news --ls
wiki --news -o news.md
# Save for later
wiki "Python" -o python.md
# Debug or pipe to other tools
wiki "article" --raw | grep "keyword"
# Direct Wikipedia URL
wiki "https://en.wikipedia.org/wiki/Python_(programming_language)"
--raw: Plain Markdown, ideal for piping or saving-o file: Save to a specific file