Transform your CLI documentation from static code blocks or heavy GIF/Video into self-testing, interactive, lightweight demos that stay current automatically.
Captured using
dg. We dogfood ourselves.
# Install globally
sudo npm install -g @deepguide-ai/dg
# Or run without installing
npx @deepguide-ai/dg init- Node.js 18+ - The CLI runs on Node.js
- termsvg - For recording terminal sessions (auto-installed on first use)
dg doctorThis will check that all dependencies are properly installed.
Quick Start
npx @deepguide-ai/dg init # 30-second setup
dg capture # Record interactive demo
dg validate # Test in CI - PR fails if broken| Command | Purpose | Example |
|---|---|---|
dg init |
Interactive setup wizard | npx @deepguide-ai/dg init |
dg capture |
Record CLI demos | dg capture |
dg validate |
Test demos in CI | dg validate |
dg list |
Show status | dg list |
dg doctor |
Environment diagnostics | dg doctor |
A: DG re-runs your original commands and compares exit codes + filtered output. Interactive demos are automatically skipped in CI.
A: All platforms supported by Node.js 18+: macOS, Linux. Requires Node.js runtime. Windows is supported through WSL.
A: SVG demos are typically 50-100x smaller than equivalent GIFs.
See DG in action:
- Demo - Demo Project for dg
Want your project listed? Open a PR!
We welcome contributions! See our Contributing Guide.
git clone https://github.com/deepguide-ai/dg.git
cd dg
pnpm install
pnpm run build
pnpm run devpnpm test # Unit tests (when available)
pnpm run build # Build TypeScript
node dist/index.js # Test built CLI- 🐛 Issues - Bug reports and feature requests
- 💬 Discussions - Questions and community
- 📧 Email - Direct support
DeepGuide CLI builds upon these amazing open source projects:
- asciinema - The core terminal session recorder that powers our demo capture. GPL-3.0 licensed.
- node-pty - Pseudoterminal implementation that enables cross-platform terminal recording. MIT licensed.
- termsvg - Terminal session to SVG renderer that creates our lightweight, beautiful demo outputs. GPL-3.0 licensed.
Special thanks to the maintainers and contributors of these projects! ❤️
MIT - The main CLI tool is MIT licensed for maximum compatibility.
Platform packages containing termsvg binaries are GPL-3.0 licensed. Enterprise users can avoid GPL binaries with DG_GPL_OFF=1.
Made with ❤️ by the DeepGuide team
Transform your CLI documentation from static to spectacular.