{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "name": "Edge CLI Shield commands | Edge Docs",
  "headline": "Edge CLI Shield commands | Edge Docs",
  "description": "Edge CLI Shield command reference: create, update and revoke bot-protection widgets, view traffic stats and run the AI-powered Shield Examiner.",
  "url": "https://edge.network/docs/cli/shield",
  "image": "https://edge.network/og/docs__cli__shield.png",
  "inLanguage": "en",
  "publisher": {
    "@type": "Organization",
    "name": "Edge Network",
    "url": "https://edge.network",
    "logo": "https://edge.network/favicon.svg"
  },
  "isPartOf": {
    "@type": "WebSite",
    "name": "Edge Network",
    "url": "https://edge.network"
  },
  "breadcrumb": {
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://edge.network"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Docs",
        "item": "https://edge.network/docs"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Cli",
        "item": "https://edge.network/docs/cli"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "Shield",
        "item": "https://edge.network/docs/cli/shield"
      }
    ]
  },
  "section": "documentation/cli",
  "articleBody": "Docs CDN Deployments, domains, caching, purging and on-the-fly image optimisation. Getting started \n Deployments \n Domains & SSL \n Compute Virtual machines in seconds: networking, firewalls, backups and SSH keys. Getting started \n Creating VMs \n Managing VMs \n DNS Zones, records, geo-routing, backups and development domains. Getting started \n Zone management \n DNS records \n Storage S3-compatible buckets, access keys, presigned URLs and multipart uploads. Getting started \n Buckets \n Access keys \n Shield Privacy-first bot protection: widget modes, siteverify and verified agents. Getting started \n Widget modes \n JavaScript API \n Assist AI answers from your own content: widget, ingestion and the API. Getting started \n Widget & embedding \n Content ingestion \n REST API Manage every Edge resource over HTTPS with API keys. Authentication \n Errors \n Versioning \n Compute \n CDN \n DNS \n CLI One binary for macOS, Linux and Windows to script every product. Installation \n Authentication \n Compute commands \n CDN commands \n DNS commands \n Storage commands \n Dev tooling Command palette and keyboard shortcuts across the console. Command palette \n Agent tooling Let AI agents deploy and manage infrastructure: discovery, MCP and access codes. Start with the overview MCP server \n MCP tool reference \n Connect your tool \n Framework wrappers \n Self-signup \n Access codes \n Discovery endpoint \n Deploy a static site \n Deploy an app \n Projects \n Bot protection \n AI answers \n Account & support Teams, security, audit logs, alerts, billing tools and support. Start with the overview Teams \n Referral programme \n Cost Advisor \n Security \n Two-factor auth \n Audit log \n Alerts \n Support tickets \n Search the docs ⌘K Console Products\n\n CDN Compute DNS Storage Shield Assist Developer tools\n\n REST API CLI Overview Installation Authentication Compute commands CDN commands DNS commands Storage commands Shield commands Configuration Dev tooling Agents\n\n Agent tooling Account\n\n Account & support Widgets Copy Anchor Link \n\n List widgets Copy Anchor Link \n\n Output Copy Text $ edge shield list \n ID NAME SITEKEY MODE AGENTS HOSTNAMES CREATED \n wgt-abc123 Contact form es_6206c6fdb43e7a3cb948507e6f3e5a11 managed allow example.com 2026-03-01 \n wgt-def456 Signup es_9f2a1b8c7d6e5f4a3b2c1d0e9f8a7b6c invisible challenge any 2026-04-12 Create a widget Copy Anchor Link \n\n Output Copy Text $ edge shield create --name \"Contact form\" --hostname example.com \n \n Creating widget... done \n \n ✓ Created widget Contact form (wgt-abc123) \n \n Sitekey: es_6206c6fdb43e7a3cb948507e6f3e5a11 \n Secret: ss_4f8e2a1b9c7d6e5f4a3b2c1d0e9f8a7b \n Mode: managed \n Agent Policy: allow \n Hostnames: example.com \n \n ! Store the secret securely. It will not be shown again. \n \n Embed on your page: \n <script src=\"https://shield.edge.network/api.js\" defer></script> \n <div class=\"edge-shield\" data-sitekey=\"es_6206c6fdb43e7a3cb948507e6f3e5a11\"></div> Warning\n\n The secret is shown only once. Store it as a server-side environment variable immediately. It&#x27;s needed for server-side validation and cannot be retrieved later. If it&#x27;s lost, create a new widget.\n\n Get widget details Copy Anchor Link \n\n Output Copy Text $ edge shield get wgt-abc123 \n ID: wgt-abc123 \n Name: Contact form \n Sitekey: es_6206c6fdb43e7a3cb948507e6f3e5a11 \n Secret: ss_4f8e... \n Mode: managed \n Agent Policy: allow \n Hostnames: example.com \n Created: 2026-03-01 Update a widget Copy Anchor Link \n\n Terminal Copy Text # Switch to invisible mode \n edge shield update wgt-abc123 --mode invisible \n \n # Replace the hostname allowlist \n edge shield update wgt-abc123 --hostname example.com --hostname www.example.com \n \n # Challenge verified AI agents instead of allowing them \n edge shield update wgt-abc123 --agent-policy challenge \n \n # Rename \n edge shield update wgt-abc123 --name \" Contact form (prod) \" Revoke a widget Copy Anchor Link \n\n Terminal Copy Text # Revoke with confirmation \n edge shield delete wgt-abc123 \n \n # Revoke without confirmation \n edge shield delete wgt-abc123 --force Revocation is immediate. The sitekey and secret stop working, and any pages still embedding the widget will fail verification.\n\n Traffic stats Copy Anchor Link \n\n Shows challenge volume, solve rates, humanity scores, server-side verifications and blocked replays. Defaults to the last 24 hours; use --hours for up to 30 days.\n\n Output Copy Text $ edge shield stats wgt-abc123 --hours 168 \n Last 168 hours: \n \n Challenges issued: 14,382 \n Challenges solved: 9,041 (62.9%) \n Interactive shown: 412 (2.9%) \n Avg humanity score: 78/100 \n Verified submissions: 1,204 \n Failed verifications: 38 \n Replays blocked: 17 \n Verified agents: 93 Shield Examiner Copy Anchor Link \n\n Run AI-powered analysis of a widget&#x27;s aggregate traffic. It flags bot pressure, replay abuse and calibration issues, and recommends configuration changes. It is the same Examiner that is available in the console.\n\n Terminal Copy Text # Run AI-powered traffic examination \n edge shield examine wgt-abc123 \n \n # View the last examination result \n edge shield examine-last wgt-abc123 \n \n # Output as JSON \n edge shield examine wgt-abc123 --output json Examinations take up to 45 seconds. Results are saved and can be retrieved with examine-last .\n\n Common flags Copy Anchor Link \n\n Flag Description --name Widget name --hostname Allowed hostname (repeatable). Empty = any hostname --mode Widget mode: managed , non-interactive , invisible --agent-policy Verified-agents policy: allow , challenge , block --hours Stats window in hours (max 720) --force Skip delete confirmation Next steps\n\n Shield docs\n\n Embed the widget and validate tokens\n\n Widget modes\n\n Managed, non-interactive and invisible\n\n Something unclear or out of date? Tell us , or read this page as Markdown .\n\n Storage commands\n\n Previous\n\n Configuration\n\n Next",
  "headings": [
    {
      "level": 1,
      "text": "Shield commands"
    },
    {
      "level": 2,
      "text": "Next steps"
    },
    {
      "level": 3,
      "text": "Shield docs"
    },
    {
      "level": 3,
      "text": "Widget modes"
    }
  ],
  "relatedLinks": [
    {
      "@type": "WebPage",
      "name": "Network",
      "url": "https://edge.network/network"
    },
    {
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://edge.network/pricing"
    },
    {
      "@type": "WebPage",
      "name": "Docs",
      "url": "https://edge.network/docs"
    },
    {
      "@type": "WebPage",
      "name": "Sign in",
      "url": "https://edge.network/console/access"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/cdn/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Deployments",
      "url": "https://edge.network/docs/cdn/deployments"
    },
    {
      "@type": "WebPage",
      "name": "Domains &amp; SSL",
      "url": "https://edge.network/docs/cdn/domains"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/compute/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Creating VMs",
      "url": "https://edge.network/docs/compute/creating-vms"
    },
    {
      "@type": "WebPage",
      "name": "Managing VMs",
      "url": "https://edge.network/docs/compute/managing-vms"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/dns/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Zone management",
      "url": "https://edge.network/docs/dns/zones"
    },
    {
      "@type": "WebPage",
      "name": "DNS records",
      "url": "https://edge.network/docs/dns/records"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/storage/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Buckets",
      "url": "https://edge.network/docs/storage/buckets"
    },
    {
      "@type": "WebPage",
      "name": "Access keys",
      "url": "https://edge.network/docs/storage/access-keys"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/shield/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget modes",
      "url": "https://edge.network/docs/shield/widget-modes"
    },
    {
      "@type": "WebPage",
      "name": "JavaScript API",
      "url": "https://edge.network/docs/shield/js-api"
    },
    {
      "@type": "WebPage",
      "name": "Getting started",
      "url": "https://edge.network/docs/assist/getting-started"
    },
    {
      "@type": "WebPage",
      "name": "Widget &amp; embedding",
      "url": "https://edge.network/docs/assist/widget"
    },
    {
      "@type": "WebPage",
      "name": "Content ingestion",
      "url": "https://edge.network/docs/assist/ingestion"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/api/authentication"
    },
    {
      "@type": "WebPage",
      "name": "Errors",
      "url": "https://edge.network/docs/api/errors"
    },
    {
      "@type": "WebPage",
      "name": "Versioning",
      "url": "https://edge.network/docs/api/versioning"
    },
    {
      "@type": "WebPage",
      "name": "Compute",
      "url": "https://edge.network/docs/api/compute"
    },
    {
      "@type": "WebPage",
      "name": "CDN",
      "url": "https://edge.network/docs/api/cdn"
    },
    {
      "@type": "WebPage",
      "name": "DNS",
      "url": "https://edge.network/docs/api/dns"
    },
    {
      "@type": "WebPage",
      "name": "Installation",
      "url": "https://edge.network/docs/cli/installation"
    },
    {
      "@type": "WebPage",
      "name": "Authentication",
      "url": "https://edge.network/docs/cli/authentication"
    }
  ],
  "alternateFormats": [
    {
      "@type": "MediaObject",
      "contentType": "text/html",
      "url": "https://edge.network/docs/cli/shield",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T21:33:31.630Z"
}