# A Simple Way to Check Meta Tags, Open Graph & Twitter Cards from the Command Line ![OG data and Twitter Card previews](https://hackmd.io/_uploads/HkzORAqbZx.jpg) If you work with SEO, content publishing or social media previews, you already know the pain. You publish a page, share it on WhatsApp or Twitter, and the preview looks nothing like you expected. :::success The link often loads with the wrong title, wrong image, or no description at all, and sometimes nothing shows up in the preview entirely. ::: You open Facebook Debugger. You refresh Twitter Card Validator. You clear cache, rebuild, tweak, republish. All this just to verify one link. There’s an easier way to do this straight from your terminal. ## Why metadata matters more than people think Meta title tells search engines what your page is about. Meta description helps click-through rate. Open Graph decides how your link appears on Facebook, LinkedIn, WhatsApp. Twitter Cards control how content shows on X posts. If any of these tags are missing or incorrect, your content looks broken. Small detail. Big difference. ## I built a CLI tool for this problem Instead of loading debuggers every time, I wanted something that shows me everything in one place — title, description, OG image, twitter info — without a browser. So I built: 👇 Meta Preview Analyzer https://github.com/maheshwarimohit/meta-preview-analyzer It fetches metadata instantly and prints it in clean JSON. Example npx meta-preview-analyzer https://example.com Output: { "title": "...", "description": "...", "ogImage": "...", "twitterCard": "...", "twitterImage": "..." } No interface. No login. Just the data. ## Who will genuinely benefit from this **1. SEO Analysts** Quickly check if a blog has proper Meta + OG tags before publishing. **2. Developers** Integrate it into CI, deployments, markdown link checks, automation scripts. **3. Content Managers** Preview how posts look on social platforms without opening multiple tools. **4. Social Media Teams** Verify share previews before campaigns go live. If you’ve ever pushed a link and the preview disappointed you, this tool saves time. ## How to use it in real work 1. Validate metadata before publishing npx meta-preview-analyzer <your-blog-url> Fix missing tags before search engines or users see them. 2. Bulk audit multiple pages for i in $(cat urls.txt); do npx meta-preview-analyzer $i; done Useful for large sites, backlink review, client audits. 3. Use inside Node scripts import analyze from "meta-preview-analyzer"; const data = await analyze("https://example.com"); console.log(data.title, data.ogImage); Connect output to dashboards, crawlers, CI checks. Why a CLI matters more than UI tools Visual tools are great, but slow if you check multiple pages a day. Developers need something scriptable. SEO teams need something fast. A CLI is repeatable, automatable, and removes guesswork. 👉 npx meta-preview-analyzer <url> does the job in one line. If you want to try it, here’s the repo ⭐ GitHub: https://github.com/maheshwarimohit/meta-preview-analyzer Use it, modify it, star it if it helps you. I built it because I needed it. If you’re like me, you will too.