Skip to content

Tutorials

Step-by-step guides for common Megaport CLI tasks

Hands-on guides for real-world Megaport CLI workflows.

Available Tutorials

In this section

Create a Port

Provision your first Megaport Port from the command line — find a location, choose speed and term, and verify the service is live

NAT Gateway

Provision a managed Megaport NAT Gateway — discover valid speed/session combinations, design, validate, buy, monitor telemetry, and decommission

Internet Exchange

Attach an Internet Exchange peering connection to a Megaport port — discover IX network services, buy, update peering details, and decommission

Port Lifecycle

Walk through the complete lifecycle of a Megaport port — provision, inspect, update, lock, tag, and decommission

Create an MVE

Provision a Megaport Virtual Edge — pick a vendor image, size the instance, configure vNICs, and launch your virtual SD-WAN appliance

Connect to AWS

Provision an AWS Direct Connect VXC using the Megaport CLI — from partner port discovery to a live private connection

Connect to Azure

Provision an Azure ExpressRoute VXC using the Megaport CLI — from service key to a live private connection

Create a Megaport Internet VXC

Provision a Megaport Internet connection — turn any Port, MCR, or MVE into a public internet upstream using a TRANSIT VXC

MCR Routing

Provision a Megaport Cloud Router, attach VXC spokes, and manage BGP prefix filter lists for multi-cloud traffic engineering

Multi-Cloud Connectivity

Build a complete AWS + Azure + Google Cloud network through Megaport using MCR as a transit hub — with a full automation script

Automation & Scripting

JSON templates, jq pipelines, idempotent scripts, bulk operations, the apply command, and GitHub Actions workflows for Megaport CLI automation