{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "name": "Edge CLI CDN commands | Edge Docs",
  "headline": "Edge CLI CDN commands | Edge Docs",
  "description": "Edge CLI CDN command reference: create deployments, add custom domains with URL or storage origins, purge cached paths, and view traffic and cache metrics.",
  "url": "https://edge.network/docs/cli/cdn",
  "image": "https://edge.network/og/docs__cli__cdn.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": "Cdn",
        "item": "https://edge.network/docs/cli/cdn"
      }
    ]
  },
  "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 Deployments Copy Anchor Link \n\n List deployments Copy Anchor Link \n\n Output Copy Text $ edge cdn list \n ID NAME DOMAINS STATUS CREATED \n cdn-abc123 production 3 active 2025-01-15 \n cdn-def456 staging 1 active 2025-02-01 \n cdn-ghi789 legacy 2 active 2024-12-10 Create a deployment Copy Anchor Link \n\n Output Copy Text $ edge cdn create --name my-cdn \n \n Creating CDN deployment... done \n \n ID: cdn-jkl012 \n Name: my-cdn \n Status: active \n \n Add a domain to start using your CDN: \n edge cdn domains add cdn-jkl012 --domain cdn.example.com --origin https://origin.example.com Get deployment details Copy Anchor Link \n\n Output Copy Text $ edge cdn get cdn-abc123 \n ID: cdn-abc123 \n Name: production \n Status: active \n Created: 2025-01-15 10:30:00 UTC \n \n Domains: \n cdn.example.com → https://origin.example.com SSL: active \n assets.example.com → storage://my-bucket SSL: active \n static.example.com → https://s3.amazonaws.com/... SSL: active \n \n Statistics (24h): \n Requests: 1,245,678 \n Bandwidth: 45.2 GB \n Cache Hit: 94.5% Delete a deployment Copy Anchor Link \n\n Terminal Copy Text # Delete with confirmation \n edge cdn delete cdn-abc123 \n \n # Delete without confirmation \n edge cdn delete cdn-abc123 --yes Domains Copy Anchor Link \n\n List domains Copy Anchor Link \n\n Output Copy Text $ edge cdn domains list cdn-abc123 \n DOMAIN ORIGIN SSL CACHE TTL \n cdn.example.com https://origin.example.com active 86400s \n assets.example.com storage://my-assets active 604800s \n static.example.com https://s3.amazonaws.com/... active 2592000s Add a domain Copy Anchor Link \n\n Terminal Copy Text # Add domain with external origin \n edge cdn domains add cdn-abc123 \\ \n --domain cdn.example.com \\ \n --origin https://origin.example.com \\ \n --cache-ttl 86400 \n \n # Add domain with Storage bucket as origin \n edge cdn domains add cdn-abc123 \\ \n --domain assets.example.com \\ \n --origin-type storage \\ \n --storage-bucket my-assets \n \n # Enable JIT image optimization \n edge cdn domains add cdn-abc123 \\ \n --domain images.example.com \\ \n --origin https://origin.example.com \\ \n --jit-image Update a domain Copy Anchor Link \n\n Terminal Copy Text # Update origin \n edge cdn domains update cdn-abc123 dom-xyz789 \\ \n --origin https://new-origin.example.com \n \n # Update cache TTL \n edge cdn domains update cdn-abc123 dom-xyz789 \\ \n --cache-ttl 3600 Remove a domain Copy Anchor Link \n\n Terminal Copy Text edge cdn domains remove cdn-abc123 dom-xyz789 Cache purging Copy Anchor Link \n\n Purge all Copy Anchor Link \n\n Output Copy Text $ edge cdn purge cdn-abc123 \n Purging all cached content... done \n \n Cache cleared for all domains in cdn-abc123 Selective purge Copy Anchor Link \n\n Terminal Copy Text # Purge specific path \n edge cdn purge cdn-abc123 --path /images/* \n \n # Purge specific URL \n edge cdn purge cdn-abc123 --url https://cdn.example.com/asset.js \n \n # Purge multiple paths \n edge cdn purge cdn-abc123 --path /css/* --path /js/* Metrics Copy Anchor Link \n\n Output Copy Text $ edge cdn metrics cdn-abc123 \n Period: Last 24 hours \n \n Total Requests: 1,245,678 \n Bandwidth: 45.2 GB \n Cache Hit Rate: 94.5% \n Cache Misses: 68,412 \n \n By Domain: \n cdn.example.com 892,345 requests 32.1 GB \n assets.example.com 312,456 requests 10.8 GB \n static.example.com 40,877 requests 2.3 GB Terminal Copy Text # Specify time period \n edge cdn metrics cdn-abc123 --period 7d \n \n # Filter by domain \n edge cdn metrics cdn-abc123 --domain cdn.example.com \n \n # Export as CSV \n edge cdn metrics cdn-abc123 --export csv > cdn-metrics.csv Common flags Copy Anchor Link \n\n Flag Description --name , -n Deployment name --domain Domain hostname --origin Origin URL --origin-type Origin type: url or storage --storage-bucket Storage bucket name (when --origin-type is storage ) --cache-ttl Cache TTL in seconds --jit-image Enable JIT image optimisation --path Path pattern to purge --url Specific URL to purge --yes , -y Skip confirmation prompts Next steps\n\n DNS commands\n\n Manage zones and records\n\n CDN docs\n\n Full CDN documentation\n\n Something unclear or out of date? Tell us , or read this page as Markdown .\n\n Compute commands\n\n Previous\n\n DNS commands\n\n Next",
  "headings": [
    {
      "level": 1,
      "text": "CDN commands"
    },
    {
      "level": 2,
      "text": "Next steps"
    },
    {
      "level": 3,
      "text": "DNS commands"
    },
    {
      "level": 3,
      "text": "CDN docs"
    }
  ],
  "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/cdn",
      "name": "HTML version"
    }
  ],
  "dateModified": "2026-11-23T08:56:45.492Z"
}