<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sera Digital Marketing Academy</title>
    <description>The latest articles on DEV Community by Sera Digital Marketing Academy (@seradigitalacademy).</description>
    <link>https://dev.to/seradigitalacademy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4273867%2F71aae7d4-af29-4629-96b6-0f31132ce34a.png</url>
      <title>DEV Community: Sera Digital Marketing Academy</title>
      <link>https://dev.to/seradigitalacademy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seradigitalacademy"/>
    <language>en</language>
    <item>
      <title>Technical SEO Checks You Can Run From the Terminal Before a Release</title>
      <dc:creator>Sera Digital Marketing Academy</dc:creator>
      <pubDate>Mon, 30 Nov 2026 09:42:37 +0000</pubDate>
      <link>https://dev.to/seradigitalacademy/technical-seo-checks-you-can-run-from-the-terminal-before-a-release-4lbp</link>
      <guid>https://dev.to/seradigitalacademy/technical-seo-checks-you-can-run-from-the-terminal-before-a-release-4lbp</guid>
      <description>&lt;p&gt;Most SEO problems that reach production are not content problems. They are a page quietly returning a redirect chain, a &lt;code&gt;noindex&lt;/code&gt; left over from staging, a canonical pointing at the wrong host, or a sitemap that lists URLs which no longer exist.&lt;/p&gt;

&lt;p&gt;You can catch almost all of these with &lt;code&gt;curl&lt;/code&gt; and &lt;code&gt;grep&lt;/code&gt; in a few minutes, before anyone opens an SEO tool. Here is the checklist we run on any page that is about to ship. Replace &lt;code&gt;URL&lt;/code&gt; with the page you are checking.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/some-page/"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1. Does the page return 200, and how many hops does it take?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL -o /dev/null -w &lt;span class="s2"&gt;"%{http_code} %{num_redirects} %{url_effective}\n"&lt;/span&gt; &lt;span class="s2"&gt;"$URL"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You want &lt;code&gt;200 0&lt;/code&gt; and the same URL you asked for. If you see &lt;code&gt;200 2&lt;/code&gt;, the page works but goes through two redirects first. Every hop wastes crawl time and dilutes signals, so point internal links straight at the final URL.&lt;/p&gt;

&lt;p&gt;To see the chain itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sIL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -iE &lt;span class="s2"&gt;"^HTTP|^location"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A common chain on new sites is &lt;code&gt;http://www.&lt;/code&gt; → &lt;code&gt;https://www.&lt;/code&gt; → &lt;code&gt;https://&lt;/code&gt; (non-www). Fix it with one rule that sends every variant straight to the final host.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Is anything telling search engines not to index it?
&lt;/h2&gt;

&lt;p&gt;There are two places a &lt;code&gt;noindex&lt;/code&gt; can hide. The HTTP header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sI &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -i &lt;span class="s2"&gt;"x-robots-tag"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the HTML head:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioE &lt;span class="s1"&gt;'&amp;lt;meta[^&amp;gt;]+name="robots"[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No output from the first command and &lt;code&gt;index, follow&lt;/code&gt; (or nothing) from the second is what you want. Staging sites often ship with a site-wide &lt;code&gt;noindex&lt;/code&gt; setting that gets copied to production along with the database.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Does the canonical point to itself?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioE &lt;span class="s1"&gt;'&amp;lt;link[^&amp;gt;]+rel="canonical"[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a normal page, the canonical should be the exact public URL: same protocol, same host, same trailing-slash style. Watch for canonicals pointing at a staging domain or at the homepage on every page.&lt;/p&gt;

&lt;p&gt;There should be exactly one. Count them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioc &lt;span class="s1"&gt;'rel="canonical"'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two canonicals usually means a theme and an SEO plugin are both printing one.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Is the page allowed in robots.txt?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://example.com/robots.txt"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it, do not just glance at it. A &lt;code&gt;Disallow: /&lt;/code&gt; under &lt;code&gt;User-agent: *&lt;/code&gt; blocks the whole site. Also check that the &lt;code&gt;Sitemap:&lt;/code&gt; line points at a URL that returns 200.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Is the page in the sitemap, and does the sitemap only list live URLs?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://example.com/sitemap.xml"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -c &lt;span class="s2"&gt;"&amp;lt;loc&amp;gt;"&lt;/span&gt;
curl -s &lt;span class="s2"&gt;"https://example.com/sitemap.xml"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -o &lt;span class="s2"&gt;"&amp;lt;loc&amp;gt;[^&amp;lt;]*"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'s/&amp;lt;loc&amp;gt;//'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; head
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the site uses a sitemap index (common with WordPress SEO plugins), the first file lists child sitemaps; fetch one of those to see page URLs. Then spot-check a few of them with the status command from step 1. A sitemap full of redirects or 404s teaches search engines to trust it less.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Is the title tag there, and roughly the right length?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -o &lt;span class="s2"&gt;"&amp;lt;title&amp;gt;[^&amp;lt;]*"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'s/&amp;lt;title&amp;gt;//'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check it exists, it is unique to this page and it is not the default site name. Very long titles get cut off in results, so aim for something people can read at a glance. Then check there is exactly one &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioc &lt;span class="s2"&gt;"&amp;lt;h1"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Is structured data present and valid JSON?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -c &lt;span class="s1"&gt;'application/ld+json'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the page is meant to have schema (Article, Organization, Course, FAQPage), this should be at least 1. To check the JSON actually parses, pull the first block into &lt;code&gt;jq&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; sed -n &lt;span class="s1"&gt;'/application\/ld+json/,/&amp;lt;\/script&amp;gt;/p'&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'1d;$d'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; head -c 5000 &lt;span class="o"&gt;|&lt;/span&gt; jq . &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"valid JSON"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A missing comma in a hand-written JSON-LD block silently breaks the whole thing. Google's Rich Results Test will tell you whether the content is eligible; this just catches syntax errors early.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. How fast is it for a real mobile user?
&lt;/h2&gt;

&lt;p&gt;The PageSpeed Insights API works from the terminal too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=$URL&amp;amp;strategy=mobile"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.loadingExperience.metrics | {LCP: .LARGEST_CONTENTFUL_PAINT_MS.percentile, INP: .INTERACTION_TO_NEXT_PAINT.percentile, CLS: .CUMULATIVE_LAYOUT_SHIFT_SCORE.percentile}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are field numbers from real Chrome users, when Google has enough data for the URL. The "good" thresholds are an LCP of 2.5 seconds or less, an INP of 200 milliseconds or less and a CLS of 0.1 or less (the API reports CLS multiplied by 100). New pages often have no field data yet; in that case look at &lt;code&gt;.lighthouseResult&lt;/code&gt; for lab numbers instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put it in one script
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nv"&gt;URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$1"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== status"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;      curl -sL -o /dev/null -w &lt;span class="s2"&gt;"%{http_code} hops=%{num_redirects} %{url_effective}\n"&lt;/span&gt; &lt;span class="s2"&gt;"$URL"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== x-robots"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;    curl -sI &lt;span class="s2"&gt;"$URL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -i &lt;span class="s2"&gt;"x-robots-tag"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;
&lt;span class="nv"&gt;HTML&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -sL &lt;span class="s2"&gt;"$URL"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== meta robots"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$HTML"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioE &lt;span class="s1"&gt;'&amp;lt;meta[^&amp;gt;]+name="robots"[^&amp;gt;]*&amp;gt;'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== canonical"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;   &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$HTML"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioE &lt;span class="s1"&gt;'&amp;lt;link[^&amp;gt;]+rel="canonical"[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== title"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;       &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$HTML"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -o &lt;span class="s2"&gt;"&amp;lt;title&amp;gt;[^&amp;lt;]*"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s1"&gt;'s/&amp;lt;title&amp;gt;//'&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== h1 count"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$HTML"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -ioc &lt;span class="s2"&gt;"&amp;lt;h1"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"== json-ld"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;     &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$HTML"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -c &lt;span class="s1"&gt;'application/ld+json'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save it as &lt;code&gt;seo-check.sh&lt;/code&gt;, run &lt;code&gt;bash seo-check.sh https://example.com/page/&lt;/code&gt;, and paste the output into the pull request. It takes seconds and it settles most "why isn't this page showing up?" conversations before they start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;grep&lt;/code&gt; on HTML is a quick check, not a parser. Attributes in a different order (&lt;code&gt;content&lt;/code&gt; before &lt;code&gt;name&lt;/code&gt;) can slip past these patterns, so treat "no output" as "look manually", not as proof.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; sees the server-rendered HTML. If your title, canonical or schema are injected by JavaScript, check the rendered page with URL Inspection in Google Search Console as well.&lt;/li&gt;
&lt;li&gt;None of this replaces Search Console. It just means fewer surprises when you open it.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;This article was created with the help of AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
