@docforge-cli/cli
v1.2.2
Published
Generate prompt-ready context files for any library — pinned to your exact version.
Downloads
415
Maintainers
Readme
DocForge CLI (dcf)
Generate prompt-ready context files for any library — pinned to your exact version.
Install
npm install -g @docforge-cli/cliWorks on Linux (x64, arm64), macOS (Intel, Apple Silicon), and Windows (x64). The correct native binary is selected automatically.
Usage
# Generate a context file for a specific package
dcf generate [email protected]
# Generate for the latest version
dcf generate fastapi
# Detect packages from package.json and generate context files
dcf detect
# Log in (required for generation)
dcf auth login
# Log out
dcf auth logoutWhat it does
DocForge fetches documentation for the exact library version you specify and generates a .context.md file — a structured, AI-ready reference covering:
- Install commands
- Core imports
- Key props and types
- Usage examples
- Version-specific gotchas
Drop the .context.md into your project and reference it in Cursor, GitHub Copilot, Claude, or any AI assistant.
Backend
The CLI connects to the DocForge backend at https://solvorlabs-docforge-api.hf.space by default. You can point it at a local backend:
DCF_BACKEND=http://localhost:8000 dcf generate react@18Auth
dcf auth login # opens browser OAuth flow, saves token to ~/.config/docforge/config.toml
dcf auth logoutLinks
License
MIT
