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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Microsoft Edge command-line options are launch-time arguments: you add them when starting the browser, a WebDriver session or (in a different form) a WebView2 host. The documented options below cover proxy routing, automatic DevTools, automation arguments and development diagnostics. They are useful examples, not a complete inventory of every Chromium-derived or Edge-specific switch.

Use the command for your task, make sure you are launching the intended Edge channel, and test risky or experimental flags only in an isolated development profile.

What Edge command-line arguments control

An argument changes how a new Edge process starts. It does not permanently change the browser for every future launch, and it does not necessarily target the same process in every integration. A shell command starts the browser directly; Edge WebDriver passes values through EdgeOptions.args; a WebView2 application uses the separate additionalBrowserArguments capability for arguments intended for the underlying browser process.

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

Microsoft’s documented examples cover specific scenarios. There is no single, guaranteed list of every switch that works across all Edge versions, operating systems and channels, so treat each option as task-specific and check the documentation for the integration you are using.

#1 Best Overall
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

Proxy command-line options

Edge normally follows the operating system’s network settings, including its proxy configuration and certificate stores. These switches let you supply an alternative configuration at launch.

Option What it does Important interaction or caution
--no-proxy-server Bypasses a proxy even when the system has one configured. Overrides other proxy settings supplied on the command line.
--proxy-auto-detect Asks Edge to detect the proxy configuration automatically. Ignored when --proxy-server is configured.
--proxy-server=<scheme>=<uri>[:<port>][;...] Maps schemes to proxies. A single URI can apply to all traffic, and direct:// means a direct connection. Copy the scheme, URI and separators exactly.
--proxy-bypass-list=(<trailing_domain>|<ip-address>)[:<port>][;...] Lists hosts that should avoid the proxy. Must be paired with --proxy-server. Wildcard and trailing-domain matching can be broader than expected; for example, *microsoft.com can also match imicrosoft.com.
--proxy-pac-url=<pac-file-url> Points Edge to a PAC file URL used to resolve proxy information. Use the PAC URL supplied by your network administrator.

Examples

msedge --no-proxy-server
msedge --proxy-auto-detect
msedge --proxy-server="https=proxy.example.test:8443;http=proxy.example.test:8080" --proxy-bypass-list="<local>;*.internal.example.test"

The last command is only a syntax example; replace the host names and ports with values approved for your network. Proxy arguments change where browser traffic travels, so verify organizational policy before using them with production data.

Open DevTools automatically on new tabs

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

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

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

For this behavior to work reliably, no Edge process should already be running. Startup boost can leave a minimal process in the background even after you close the visible window. If DevTools does not open, disable Startup boost at edge://settings/system, close all Edge processes, and run the command again. For a one-off manual session, Ctrl+Shift+I (Windows/Linux), Command+Option+I (macOS), or F12 opens DevTools without a command-line switch.

Rank #2
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

Passing arguments through Edge WebDriver

In Edge WebDriver, EdgeOptions.args is the list passed to the Edge process. Values use an equals sign. Microsoft’s examples include start-maximized and user-data-dir=/tmp/temp_profile; in that API list they are supplied without requiring a leading --.

Python example

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")

# Add a browser argument when your test needs one:
# options.add_argument("auto-open-devtools-for-tabs")

driver = webdriver.Edge(options=options)
driver.get("https://example.com")
print(driver.title)
driver.quit()

The profile directory should be dedicated to automation. Reusing your everyday profile can cause profile locks, expose personal sessions to tests, or make results depend on extensions and cached state.

Other EdgeOptions that affect launch setup

  • binary selects a particular Edge executable or channel.
  • debuggerAddress attaches to an existing debugging endpoint instead of starting a normal session.
  • detach controls whether the browser remains open when the WebDriver service stops.
  • excludeSwitches removes switches that EdgeDriver would otherwise pass. Microsoft says to omit the -- prefix in this list.

WebView2 is a different argument path

When a WebView2 app is launched through WebDriver, ordinary args are passed to the app rather than to the underlying Edge browser process. To send browser-process arguments, use WebView2’s additionalBrowserArguments capability. Do not assume that an argument visible to a WebDriver app automatically reaches the embedded browser.

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

Executable paths, headless runs and remote debugging

Microsoft’s DevTools MCP documentation lists default executable locations for Stable, Beta and Dev on Windows, macOS and Linux, plus Canary on Windows and macOS. Those are defaults, not guarantees: user configuration, Edge version and group policy can change the path, and no Canary Linux path is specified there. If a command reports that the executable cannot be found, locate the installed channel and pass its actual path (or configure the tool’s binary setting).

Rank #3
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

The same MCP-oriented examples show --headless for a run without a visible window, --isolated for a temporary profile removed on close, and --viewport=1280x720 for the initial viewport. These examples belong to the MCP tooling context; do not treat every wrapper-specific option as a universal Edge browser switch.

msedge.exe --remote-debugging-port=9222

This starts Edge with a remote debugging endpoint on port 9222. Protect that endpoint and avoid exposing it to untrusted networks.

Combining switches safely

  1. Define the task first: proxy routing, DevTools, automation, diagnostics or an embedded WebView2 browser.
  2. Start with one documented argument and confirm its effect.
  3. Add a second argument only when its interaction is understood. For example, --proxy-auto-detect does not take effect when --proxy-server is present.
  4. Use an isolated profile for tests, headless work and experiments.
  5. Record the Edge channel, executable path and arguments with the test so another machine can reproduce the launch.

Troubleshooting common launch failures

DevTools does not open

An existing Edge process or Startup boost is the usual documented cause. Close every Edge process, disable Startup boost at edge://settings/system, then retry.

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

The proxy is ignored

Check for --no-proxy-server, which overrides other proxy settings, and check whether --proxy-auto-detect is being used together with --proxy-server. A bypass list also does nothing unless a proxy-server argument is supplied.

Rank #4
Logitech MX Keys S Wireless Keyboard Low Profile Fluid Precise - Graphite
  • Fluid Typing Experience: Laptop-like profile with spherically-dished keys shaped for your fingertips delivers a fast, fluid, precise and quieter typing experience
  • Automate Repetitive Tasks: Easily create and share time-saving Smart Actions shortcuts to perform multiple actions with a single keystroke with the Logi Options+ app (1)
  • Smarter Illumination: Backlit keyboard keys light up as your hands approach and adapt to the environment; Now with more lighting customizations on Logi Options+ (1)
  • More Comfort, Deeper Focus: Work for longer with a solid build, low-profile design and an optimum keyboard angle that is better for your wrist posture
  • Multi-Device, Multi OS Bluetooth Keyboard: Pair with up to 3 devices on nearly any operating system (Windows, macOS, Linux) via Bluetooth Low Energy or included Logi Bolt USB receiver (2)

WebDriver starts the app but not the browser with the expected flag

For WebView2, ordinary WebDriver args target the app. Move browser-process arguments to additionalBrowserArguments.

The executable cannot be found

Do not assume the Stable path applies to Beta, Dev or Canary. Verify the installed channel and pass the actual binary path; policies and per-user installations can change Microsoft’s documented defaults.

Edge displays an unsupported-flag warning

Microsoft’s policy documentation gives --disable-gpu-sandbox as an example warning: “You’re using an unsupported command-line flag: –disable-gpu-sandbox. This poses stability and security risks.” Do not use that flag as a routine fix. A warning indicates risk, not a harmless cosmetic issue.

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

A test profile is locked or results vary between runs

Use a unique temporary user-data-dir for each concurrent session, ensure the previous process has exited, and avoid sharing a profile with interactive Edge. Clean up temporary profiles after the run unless you need them for diagnosis.

Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Security and support boundaries

Some flags disable browser protections or expose debugging interfaces. Microsoft’s command-line security policy warns about potentially dangerous flags when the policy is enabled or unset; disabling the warning policy does not make a flag safe. WebView2 guidance likewise says: “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.” Chromium-owned flags are not controlled by Microsoft Edge, so experimental behavior can change independently of Edge documentation.

Keep risky switches out of production launchers, restrict remote-debugging access, and prefer documented options for ongoing automation. Treat a flag as version-sensitive unless the relevant Microsoft documentation says otherwise.

Or skip the browser setup

If your goal is simply to capture a clean page image or PDF rather than operate a local Edge process, ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns PNG, JPEG, WebP or PDF; the service accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture.

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

cURL (see the 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

Python:

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)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Bot checks, CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and each response identifies the page verdict and billing result in X-Page-Verdict and X-Billed headers. An MCP server exposes take_screenshot, get_page_info and capture_pdf to Claude, Cursor and other MCP clients. Free usage includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Frequently Asked Questions

Do Edge command-line options persist after I close the browser?

No. They apply to the process started with that command; launch Edge normally to use its ordinary configuration.

Can I use the same arguments with every Edge channel?

Not necessarily. Executable locations, policies and support can vary by Stable, Beta, Dev or Canary, so verify the channel-specific setup.

What is the safest way to test an unfamiliar flag?

Use a temporary isolated profile, keep the test off production systems, and remove the flag if it causes warnings, instability or unexpected network behavior.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

The Bottom Line

Use documented switches for the specific launch task, keep browser-process and wrapper arguments separate, and treat experimental or security-reducing flags as temporary development tools rather than permanent configuration.

Quick Recap

Bestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.34
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48

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.