Capture CLI
Command-line interface for Capture API. Take screenshots, generate PDFs, extract content and metadata from any URL directly from your terminal.
The Capture CLI lets you capture screenshots, generate PDFs, and extract content from any URL directly from your terminal.
Installation
Go Install
go install github.com/techulus/capture-go/cmd/capture@latestHomebrew
brew tap techulus/tap
brew install captureConfiguration
Set your API credentials as environment variables:
export CAPTURE_KEY="your_api_key"
export CAPTURE_SECRET="your_api_secret"Get your API key and secret from the Capture Dashboard.
Commands
Screenshot
Capture screenshots of any website:
capture screenshot https://example.com -o screenshot.png
capture screenshot https://example.com -X vw=1920 -X vh=1080 -X fullPage=true -o full.pngGenerate PDFs from any website:
capture pdf https://example.com -o document.pdf
capture pdf https://example.com -X format=A4 -X landscape=true -o landscape.pdfContent
Extract content from any website:
capture content https://example.com --format markdown
capture content https://example.com --format html -o page.htmlMetadata
Extract metadata from any website:
capture metadata https://example.com --prettyAnimated
Create animated GIF recordings:
capture animated https://example.com -X duration=5 -o recording.gifCommon Options
| Option | Description |
|---|---|
-o | Output file path |
-X | Pass additional options (e.g., -X vw=1920) |
--edge | Use edge mode for faster response |
--dry-run | Preview the request URL without executing |
Learn More
- GitHub Repository: techulus/capture-go
- Screenshot Options
- PDF Options
- Content Options
- Metadata Options
SDK Overview
Official Capture API SDKs for Node.js, Go, and Rust. Integrate screenshot, PDF, and content capture capabilities with TypeScript support, async/await, and comprehensive examples.
MCP (Model Context Protocol)
Connect Capture API to Claude Code and Claude Desktop using Model Context Protocol. Generate screenshots, PDFs, and extract content directly from AI conversations.