Capture LogoCapture

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@latest

Homebrew

brew tap techulus/tap
brew install capture

Configuration

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.png

PDF

Generate 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.pdf

Content

Extract content from any website:

capture content https://example.com --format markdown
capture content https://example.com --format html -o page.html

Metadata

Extract metadata from any website:

capture metadata https://example.com --pretty

Animated

Create animated GIF recordings:

capture animated https://example.com -X duration=5 -o recording.gif

Common Options

OptionDescription
-oOutput file path
-XPass additional options (e.g., -X vw=1920)
--edgeUse edge mode for faster response
--dry-runPreview the request URL without executing

Learn More

On this page