CLI
Installing microlink.io also ships a
microlink binary where every product is a subcommand. Flags map one-to-one to the options each method accepts:microlink markdown https://example.com
microlink screenshot https://example.com --fullPage
microlink logo https://github.com --square
microlink links https://example.com
microlink search "best coffee" --limit 10 --location es --api-key YOUR_KEYStrings print raw; objects pretty-print as JSON, so the output is pipe-friendly. Every subcommand except
search runs on the free tier without credentials — search requires an API key, passed as shown above or exported once as described below.Authentication
Pass your API key per invocation or export it once as an environment variable:
microlink search "web performance" --api-key YOUR_KEYexport MICROLINK_API_KEY=YOUR_KEY
microlink screenshot https://example.comHeaders
Forward headers to the target page with
--header:microlink markdown https://example.com --header 'Cookie: auth_token=…'Structured input
Commands that take structured arguments accept inline JSON, and
run accepts a file:microlink extract https://microlink.io --data '{"image":{"selector":"meta[property=og:image]","attr":"content","type":"image"}}'
microlink function https://example.com --file ./fn.jsLooking for a richer standalone terminal experience? That's @microlink/cli.