---
title: "The CLI edge command"
slug: "the-cli-edge-command"
abstract: "Reference for the Sitecore CLI edge command for managing Experience Edge GraphQL endpoint API keys."
---
# The CLI edge command

The Sitecore Experience Edge plugin provides the `edge` command. The command has subcommands that help you authenticate within an organization, list, and switch tenants, and manage API keys for your Experience Edge GraphQL endpoint.

To install the plugin, run the following command:

```text
dotnet sitecore plugin add -n Sitecore.Edge.DevEx.Sitecore.Plugin

```

<details>
<summary><h2>Usage</h2></summary>

You can use the `edge` command as follows:

```text
dotnet sitecore edge [options]

```

To use one of the `cloud` subcommands:

```text
dotnet sitecore edge [subcommand] [options]

```

Subcommands have subcommands (operations) and options of their own. For detailed usage information, refer to the documentation of each `edge` subcommand.

</details>

<details>
<summary><h2>Options</h2></summary>

The `edge` command has the following option:

| Option | Description |
| --- | --- |
| `-?`, `-h`, `--help` | When provided, the CLI displays developer help and usage information about the command. |

</details>

<details>
<summary><h2>Subcommands</h2></summary>

You can use the following `edge` subcommands:

- [`login`](https://doc.sitecore.com/xp/en/developers/104/developer-tools/the-edge-login-command.html "The edge login command") - authenticates you through the CLI with an organization, granting you the necessary access tokens and claims.
    - You can use the `--aud, --audience` option to specify the OAuth audience of the Edge tenant. This option is necessary for older Edge tenants that use an audience which includes the tenant name, such as `https://delivery.sitecore.cloud/tenant-name`.
- [`tenant`](https://doc.sitecore.com/xp/en/developers/104/developer-tools/the-edge-tenant-command.html "The edge tenant command") - provides subcommands that help you find out what the current selected Edge tenant is, list all available Edge tenants of the organization the user is logged in to, and change the Edge tenant used for upcoming operations.
- [`apikey`](https://doc.sitecore.com/xp/en/developers/104/developer-tools/the-edge-apikey-command.html "The edge apikey command") - provides subcommands for working with the Edge API keys.

</details>