Skip to content

Getting Started

Learn how to install and configure the Megaport CLI

The Megaport CLI is a command-line tool that gives you complete programmatic control over Megaport's Software Defined Networking platform. Manage ports, virtual cross connects, cloud routers, and more — from your terminal, in scripts, or live in your browser.

What can you do with it?

  • Provision infrastructure — create and manage Ports, VXCs, MCRs, MVEs, and Internet Exchange connections
  • Connect to any cloud — AWS Direct Connect, Azure ExpressRoute, Google Cloud Interconnect, and more
  • Automate operations — scripting-friendly JSON output and input, ideal for CI/CD pipelines
  • Explore the network — browse 700+ locations across 23 countries, list partner configurations
  • Run it anywhere — native binary, Docker, or live in the browser via WebAssembly

Resource types

The CLI covers the full Megaport platform across 9 resource types:

ResourceWhat it is
PortA physical connection into the Megaport fabric at a data centre
VXCA Virtual Cross Connect — a layer 2 connection between two endpoints
MCRMegaport Cloud Router — layer 3 routing between clouds and sites
MVEMegaport Virtual Edge — SD-WAN virtual network functions in the Megaport fabric
IXMegaIX Internet Exchange — access to public internet peering
LocationA data centre on the Megaport fabric where you can deploy resources
PartnerA cloud provider or network partner with a presence on Megaport
Service KeyA one-time-use key for provisioning a VXC via a partner
UserMegaport account user management

Architecture

The megaport-cli binary (or its WebAssembly build) talks directly to the Megaport API. No middleware, no server — just your credentials and the API.

👤You
💻megaport-cliTerminal or Browser
🔗Megaport APIapi.megaport.com
🌐ResourcesPorts · VXCs · MCR · MVE