CLI reference

Use the installed executable’s help for exact flags, positional arguments and defaults rather than a hand-maintained copy.

header --help
header extract --help
header card --help

Commands

CommandPurpose
extract (or default URL argument)Fetch and render website metadata
lint / verifyInspect metadata and URL validity
lint-rules / lint-rule-listsDiscover available lint rules and lists
trace-redirectsInspect HTTP and meta-refresh redirects
edit head / edit metaModify local HTML head elements
cardExport a shareable preview image
viewView linked images or icons
httprettyPrint HTTP request and response details

Output styles include default, all_fields, all_fields_plain, json, discord, jsonld, opengraph and twitter. Use header extract --help to check the current version.

Go package APIs are documented at pkg.go.dev/github.com/arran4/header.