Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Microsoft Edge command-line options are launch-time arguments: you add them when starting the browser, in a shell, shortcut, WebDriver configuration, or WebView2 host. The documented options below cover proxy routing, automatic DevTools, automation profiles, remote debugging, and development flags. They are useful examples, not a complete inventory of every Chromium or Edge switch.

How Edge command-line arguments work

An argument is placed after the Edge executable name. Options normally begin with --; options that carry a value use an equals sign, such as --proxy-server=http://proxy.example:8080. Arguments apply when a new Edge process starts. If an existing process handles the launch request, the requested behavior may not take effect.

Executable names and paths differ by operating system, installation scope, channel, version, and policy. Treat Microsoft’s documented paths as defaults rather than guarantees. The examples here target the browser process unless a section explicitly discusses WebDriver or WebView2.

Proxy command-line options

Edge normally follows the operating system’s network and certificate settings. These switches let you select a different proxy configuration for a particular launch.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Platinum
  • Brilliant Display – Stunning 13.8" PixelSense touchscreen[1], with brilliant LCD display[2], unleashes luminous whites, deeper blacks and colors so richly saturated bringing vivid life into every frame – perfect for work, school, streaming and creative tasks.
  • Power that lasts all day – With 20 hours of battery life[3], the new Surface Laptop powers through your entire day, so you can create, work and stream from morning to night without reaching for a charger.​
  • Work at the speed of your ideas – Built with the latest Qualcomm Snapdragon X2 Elite (12 Core) processors, Surface Laptop delivers fast, AI‑accelerated performance—making it the most powerful Surface laptop for everything from multitasking to demanding workloads.
  • The ports you need – Charge on-the-go, transfer data fast, or create the ultimate desktop set up with two USB-C / USB4[4] ports.
  • Built-in AI Companion – Work smarter, create freely, and communicate with confidence—Copilot[5] on Windows 11 is always there to help.​

--no-proxy-server

Starts Edge without using a proxy, even when the system has one configured. It overrides other proxy settings supplied on the same command line.

--proxy-auto-detect

Asks Edge to detect the proxy configuration automatically. Microsoft notes that this option is ignored when --proxy-server is also configured.

--proxy-server

Use one of the documented forms:

  • --proxy-server=<scheme>=<uri>[:<port>][;...] for mappings such as HTTP and HTTPS to different proxies.
  • --proxy-server=<uri>[:<port>] for one proxy handling all traffic.
  • --proxy-server=direct:// for a direct connection.

A mapping can include a direct fallback. Copy the value exactly, including separators and ports, because a malformed mapping can silently route traffic differently from what you intended.

--proxy-bypass-list

Lists hosts or addresses that should bypass the proxy:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

--proxy-bypass-list=(<trailing_domain>|<ip-address>)[:<port>][;...]

This option must be paired with --proxy-server. Matching syntax can be broader than expected: a wildcard or trailing-domain pattern such as *microsoft.com can also match imicrosoft.com. Test bypass rules with the least-privileged pattern that meets your need.

Rank #2
Microsoft Surface Laptop 5 13.5" Touchscreen Notebook - 2256 x 1504 - Intel Core i7 12th Gen i7-1265U - Intel Evo Platform - 16 GB Total RAM - 512 GB SSD (Platinum) (Renewed)
  • With 16 GB of memory, runs as many programs as you want without losing the execution
  • The 13.5" 2256 x 1504 screen provides a great movie watching experience
  • 512 GB SSD is enough to store your essential documents and files, favorite songs, movies and pictures
  • 8 Hours battery run time helps you stay unwired and work longer non-stop

--proxy-pac-url

Points Edge to a proxy auto-configuration (PAC) file, for example --proxy-pac-url=https://network.example/proxy.pac. The PAC file determines which proxy, if any, is used for each request.

Open DevTools automatically

Use --auto-open-devtools-for-tabs when every newly opened tab in that launch should start with DevTools visible.

Windows Command Prompt

start msedge --auto-open-devtools-for-tabs

Windows PowerShell

Start-Process -FilePath "msedge" -ArgumentList "--auto-open-devtools-for-tabs"

macOS Terminal

/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge --auto-open-devtools-for-tabs

Linux shell

microsoft-edge --auto-open-devtools-for-tabs

Close all Edge processes before running these commands. Startup boost can leave a minimal process running in the background; if DevTools does not open, disable Startup boost at edge://settings/system, fully exit Edge, and retry. For a single manual session, use Ctrl+Shift+I on Windows or Linux, Command+Option+I on macOS, or F12 instead of a launch argument.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use arguments with Edge WebDriver

In Edge WebDriver, EdgeOptions.args is a list passed to the Edge process. Values use an equals sign. Microsoft’s examples include start-maximized and user-data-dir=/tmp/temp_profile; the list form does not require a separate value token.

from selenium import webdriver
from selenium.webdriver.edge.options import Options

options = Options()
options.add_argument("start-maximized")
options.add_argument("user-data-dir=/tmp/temp_profile")
driver = webdriver.Edge(options=options)

Other launch-related properties include:

  • binary selects a particular Edge executable.
  • debuggerAddress attaches to an existing debugging endpoint.
  • detach controls whether the browser remains after the WebDriver service stops.
  • excludeSwitches prevents switches that EdgeDriver would otherwise add; omit the -- prefix in this list.

WebView2: browser arguments versus app arguments

WebView2 has an important distinction. When a WebView2 app is launched through WebDriver, ordinary args are passed to the application. They are not necessarily browser-process switches. To pass arguments to the underlying Edge browser process, use the WebView2 additionalBrowserArguments capability. Confusing these two locations can make a correctly spelled switch appear to do nothing.

Rank #3
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Black
  • A PREMIUM PERFORMANCE LAPTOP — Ready for work, school, and creativity. Built for busy days, big projects, and nonstop multitasking. Run video calls, school and work apps, 20+ browser tabs, and AI tools at the same time without slowing down.
  • WITH AI BUILT IN — With a dedicated AI chip (Qualcomm Snapdragon X2 Elite), this Copilot+ PC[5] on Windows 11 helps you work smarter and faster. Prompt, create, and automate with ease - ready for even your most demanding tasks.
  • A 13.8" TOUCHSCREEN YOU'LL ACTUALLY USE — Sharp colors, real detail, smooth 120Hz scrolling on the PixelSense touchscreen[1] with LCD display[2]. Tap, scroll, or pinch to zoom - whichever feels right for streaming, editing photos, or daily work.
  • 20 HOURS OF BATTERY (LEAVE THE CHARGER) — Up to 20 hours of video playback[3] on a single charge. Work from a coffee shop, take it to class/work, or binge an entire season on a long flight — it'll keep up.
  • THE PORTS YOU NEED — Two USB-C / USB4[4] ports for fast charging, big file transfers, or hooking up to three 4K monitors when you want a full desktop. Wi-Fi 7 keeps you online and fast wherever you are.

WebView2 browser flags are primarily development and diagnostic controls. Microsoft’s Edge team states: “Apps in production shouldn’t use WebView2 browser flags, because these flags might be removed or altered at any time, and aren’t necessarily supported long-term.” Keep experimental arguments out of production deployments.

Headless, isolated profiles and remote debugging

Microsoft’s DevTools MCP setup documentation shows several launch examples used by that tooling:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • --headless runs without a visible window.
  • --isolated uses a temporary profile that is cleaned up when the session closes.
  • --viewport=1280x720 sets an initial viewport in the MCP tooling context.
  • msedge.exe --remote-debugging-port=9222 starts Edge with a remote debugging endpoint on port 9222.

The viewport and isolated examples are documented in the MCP context; do not assume every wrapper-specific option is a universal Edge switch. Protect a remote debugging port from untrusted networks and avoid exposing it beyond the machine or controlled test network.

Finding the Edge executable

Stable, Beta, Dev, and Canary installations use different locations. Microsoft documents default locations for Windows, macOS, and Linux for most channels, but paths can change with per-user installation, version, and group policy. If a command reports that msedge or microsoft-edge cannot be found, locate the installed executable and use its absolute path, then quote paths containing spaces.

For example, the macOS path in Microsoft’s DevTools example is:

Rank #4
Sale
Microsoft Surface Laptop (2026), 15-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 1TB SSD Storage, Windows 11 Copilot+ PC Built for AI, Black
  • A PREMIUM PERFORMANCE LAPTOP — Ready for work, school, and creativity. Built for busy days, big projects, and nonstop multitasking. Run video calls, school and work apps, 20+ browser tabs, and AI tools at the same time without slowing down.
  • WITH AI BUILT IN — With a dedicated AI chip (Qualcomm Snapdragon X2 Elite), this Copilot+ PC[5] on Windows 11 helps you work smarter and faster. Prompt, create, and automate with ease - ready for even your most demanding tasks.
  • A 15" TOUCHSCREEN YOU'LL ACTUALLY USE — Sharp colors, real detail, smooth 120Hz scrolling on the PixelSense touchscreen[1] with LCD display[2]. Tap, scroll, or pinch to zoom - whichever feels right for streaming, editing photos, or daily work.
  • 19 HOURS OF BATTERY (LEAVE THE CHARGER) — Up to 19 hours of video playback[3] on a single charge. Work from a coffee shop, take it to class/work, or binge an entire season on a long flight — it'll keep up.
  • Two USB-C / USB4[4] ports and a microSD card reader for fast charging, big file transfers, or hooking up to three 4K monitors when you want a full desktop. Wi-Fi 7 keeps you online and fast wherever you are.
/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge

On Windows, a shortcut’s Target field is another reliable place to see the executable path. Add arguments after the closing quote, separated by spaces.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Adding an option to a shortcut

  1. Open the shortcut’s properties.
  2. In the Target field, leave the quoted executable path unchanged.
  3. After the closing quote, add a space and the argument, such as --auto-open-devtools-for-tabs.
  4. Apply the change and launch Edge from that shortcut.

Do not put the argument inside the executable’s quoted path. If the shortcut launches an existing Edge process, close every Edge window and background process first.

Security and stability warnings

Some flags weaken browser protections. Microsoft’s command-line security policy uses --disable-gpu-sandbox as a warning example: “You’re using an unsupported command-line flag: –disable-gpu-sandbox. This poses stability and security risks.” Do not use that flag as a general troubleshooting fix.

A managed policy can suppress the warning on supported Windows and macOS instances, but suppressing a warning does not make a flag safe. Chromium-owned flags are not controlled by Microsoft Edge and can change independently. Prefer documented, task-specific options and remove diagnostic flags after testing.

Troubleshooting common failures

DevTools does not open

Close all Edge processes, disable Startup boost at edge://settings/system, and run the command again. Confirm that the command starts the intended channel rather than another installed Edge build.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Microsoft Surface Laptop (2026), 13.8-inch Premium Performance Laptop, Snapdragon X2 Elite Processor, Touchscreen Display, 16GB RAM, 512GB SSD Storage, Windows 11 Copilot+ PC Built for AI, Dune
  • Brilliant Display – Stunning 13.8" PixelSense touchscreen[1], with brilliant LCD display[2], unleashes luminous whites, deeper blacks and colors so richly saturated bringing vivid life into every frame – perfect for work, school, streaming and creative tasks.
  • Power that lasts all day – With 20 hours of battery life[3], the new Surface Laptop powers through your entire day, so you can create, work and stream from morning to night without reaching for a charger.​
  • Work at the speed of your ideas – Built with the latest Qualcomm Snapdragon X2 Elite (12 Core) processors, Surface Laptop delivers fast, AI‑accelerated performance—making it the most powerful Surface laptop for everything from multitasking to demanding workloads.
  • The ports you need – Charge on-the-go, transfer data fast, or create the ultimate desktop set up with two USB-C / USB4[4] ports.
  • Built-in AI Companion – Work smarter, create freely, and communicate with confidence—Copilot[5] on Windows 11 is always there to help.​

The command is not recognized

Use the executable’s full path, check the channel-specific installation, and quote paths with spaces. On macOS and Linux, verify executable permissions and shell escaping.

Proxy settings appear ignored

Check for conflicting switches. --no-proxy-server overrides other proxy settings, and --proxy-auto-detect is ignored when --proxy-server is present. If using a bypass list, ensure --proxy-server is also supplied and review wildcard matching.

WebDriver changes have no effect

Confirm that the argument is in EdgeOptions.args, uses the expected equals-sign format, and targets the browser process. For WebView2, move browser-process arguments to additionalBrowserArguments.

A security warning appears

Identify the exact flag, remove unsupported or experimental switches, and consult your organization’s policy owner. Do not disable security controls merely to silence the warning.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choosing the right launch method

Need Invocation Best-fit option or setting
One-off proxy test Shell or shortcut --proxy-server, --proxy-bypass-list, or --no-proxy-server
Inspect every new tab Shell or shortcut --auto-open-devtools-for-tabs
Automated browser session Edge WebDriver EdgeOptions.args
WebView2 browser process WebView2 host or WebDriver additionalBrowserArguments
Remote automation Controlled development launch --remote-debugging-port=9222

Or skip the browser setup

If your goal is to capture a page rather than operate Edge interactively, ScreenshotNeo provides a website screenshot API and MCP server. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and billing status. Its MCP tools—take_screenshot, get_page_info, and capture_pdf—work with Claude, Cursor, and other MCP clients.

Using the API requires no Edge installation:

ScreenshotNeo API documentation

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo includes full-page and element capture, device presets, retina scale, PDF controls, custom CSS and JavaScript, clicks, waits, request blocking, headers, cookies, user agents, geolocation, resizing, caching, signed links, webhooks, bulk capture, a usage API, and an OpenAPI specification. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for the free plan.

Frequently Asked Questions

Are Edge command-line switches identical on every operating system?

No. Executable paths, installed channels, policies, and process behavior vary by Windows, macOS, and Linux. Verify the path and test the exact Edge build you deploy.

Can I make a shortcut use a different Edge profile?

Yes. A profile directory can be supplied as a value such as user-data-dir=/tmp/temp_profile, but use a separate directory for automation rather than sharing an active personal profile.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Is there an official complete list of every Edge switch?

The documented scenarios are not an exhaustive, permanently stable inventory. Chromium-derived and experimental flags can change or disappear, so use the documentation for the specific task and version.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.