LinuxCommandLibrary

microsoft-edge

Launch the Microsoft Edge web browser

TLDR

Open a specific URL or file

$ microsoft-edge [https://example.com|path/to/file.html]
copy

Open in InPrivate mode
$ microsoft-edge --inprivate [example.com]
copy

Open in a new window
$ microsoft-edge --new-window [example.com]
copy

Open in application mode (without toolbars, URL bar, buttons, etc.)
$ microsoft-edge --app=[https://example.com]
copy

Use a proxy server
$ microsoft-edge --proxy-server="[socks5://hostname:66]" [example.com]
copy

Open with a custom profile directory
$ microsoft-edge --user-data-dir=[path/to/directory]
copy

Open without CORS validation (useful to test an API)
$ microsoft-edge --user-data-dir=[path/to/directory] --disable-web-security
copy

Open with a DevTools window for each tab opened
$ microsoft-edge --auto-open-devtools-for-tabs
copy

SYNOPSIS

microsoft-edge [options] [url]

PARAMETERS

[url]
    The URL to open in a new Microsoft Edge window or tab. If omitted, Microsoft Edge will start with its default homepage or last session.

[options]
    Various Chromium engine flags. Consult the Chromium documentation for specific options. Common flags may include disabling features, enabling debugging, or specifying a profile.

DESCRIPTION

The `microsoft-edge` command is used to launch the Microsoft Edge web browser on Linux. It's a relatively straightforward command with limited command-line options beyond those passed directly to the browser engine itself. It provides a way to start the browser from the terminal, enabling scripting and automation of browser-related tasks. While the core browser functionality is managed by the Chromium engine, Microsoft provides the Edge-specific branding, features, and integrations. The command is typically installed as part of the Microsoft Edge browser package for Linux distributions. Running `microsoft-edge` without any arguments will launch a new Edge window. Additional arguments allow users to specify URLs to open, run in specific profiles, or potentially access debugging features depending on the installed version and browser configuration.

CAVEATS

The available options and behavior may vary depending on the specific version of Microsoft Edge installed. Full Chromium engine options are NOT usually directly accessible or supported. Microsoft Edge updates may silently change command-line argument behaviors. The command relies on the Edge installation being configured correctly.

DEBUGGING

To use the debugging features of Edge, it usually needs to be enabled with specific Chromium based parameters which are available for testing and developers only. Check if the version of edge you have installed supports these options and how to activate remote debugging. Running Microsoft Edge with debugging enabled poses security risks if not properly configured and used in a secure environment.

PROFILES

Microsoft Edge supports multiple profiles, which can be created and managed within the browser's settings. While not directly configurable using the `microsoft-edge` command, you can usually launch the browser and select a specific profile from within the UI. It may be possible to pass profile-related command-line arguments, but this is version-dependent and can be found in related documentation.

Copied to clipboard