We're excited to announce the Capture CLI — a command-line tool for capturing screenshots, generating PDFs, and extracting content from any URL directly from your terminal.
Installation
Homebrew:
brew tap techulus/tap
brew install capture
Go:
go install github.com/techulus/capture-go/cmd/capture@latest
Configuration
Set your API credentials:
export CAPTURE_KEY="your_api_key"
export CAPTURE_SECRET="your_api_secret"
What you can do
- Screenshots — Capture any website with custom viewport, dark mode, full-page, and device emulation
- PDFs — Generate PDFs with custom paper size, orientation, and margins
- Content extraction — Extract page content as markdown or HTML
- Metadata — Fetch title, description, and Open Graph data
- Animated GIFs — Record up to 30 seconds of page activity
Quick examples
capture screenshot https://example.com -o screenshot.png
capture screenshot https://example.com -X vw=1920 -X vh=1080 -X full=true -o full.png
capture pdf https://example.com -o document.pdf
capture pdf https://example.com -X format=A4 -X landscape=true -o landscape.pdf
capture content https://example.com --format markdown
capture metadata https://example.com --pretty
capture animated https://example.com -X duration=5 -o recording.gif
Use --edge for faster responses and --dry-run to preview the API URL without executing.
