ApiLens 1.0.8

dotnet tool install --global ApiLens --version 1.0.8
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ApiLens --version 1.0.8
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ApiLens&version=1.0.8
                    
nuke :add-package ApiLens --version 1.0.8
                    

ApiLens

A .NET global tool for indexing and querying .NET XML API documentation using Lucene.NET.

Installation

dotnet tool install --global ApiLens

Quick Start

# Analyze your solution (indexes all dependencies)
apilens analyze ./MySolution.sln

# Explore a package interactively
apilens explore Newtonsoft.Json

# Search for APIs
apilens query JsonSerializer

# Find code examples
apilens examples "async await"

# Discover type hierarchies
apilens hierarchy Exception --show-members

Key Features

  • Solution Analysis: Analyzes .NET projects/solutions and indexes all dependencies
  • NuGet Support: Auto-discovers and indexes packages from NuGet cache
  • Smart Indexing: Consistent index location with environment variable support
  • Rich Queries: Full-text search, wildcards, type hierarchies, complexity analysis
  • Multiple Formats: Table (human), JSON (machine), Markdown (docs)
  • MCP Ready: Designed for LLM integration via Model Context Protocol

Core Commands

  • analyze - Analyze and index project/solution dependencies
  • explore - Interactive package exploration
  • index - Index XML documentation files
  • query - Search API documentation
  • hierarchy - Explore type relationships
  • examples - Find code examples
  • exceptions - Find exception information
  • complexity - Analyze method complexity
  • members - List type members
  • list-types - Browse available types
  • nuget - Index NuGet cache
  • stats - Display index statistics

Index Management

ApiLens stores its index in a consistent location:

  • Custom: --index /path/to/index
  • Environment: APILENS_INDEX=/path/to/index
  • Default: ~/.apilens/index

Documentation

Full documentation and source code: https://github.com/endjin/ApiLens

License

Apache 2.0

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.8 865 12/28/2025
1.0.7 1,151 11/14/2025
1.0.6 1,095 8/16/2025
1.0.5 1,088 8/15/2025
1.0.4 1,123 8/9/2025
1.0.3 1,231 8/5/2025