> ## Documentation Index
> Fetch the complete documentation index at: https://wundergraphinc-alberto-router-651-remove-netpoll.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set

> Sets the router compatibility version for a federated graph.

<Note>
  Currently, there is only one router compatibility version. Consequently, this command does not yet serve a meaningful function (but will in the near future).
</Note>

## Requirements

| Package | Minimum version |
| - | - |
| [wgc](/cli/intro) | [0.74.0](https://github.com/wundergraph/cosmo/releases/tag/wgc%400.74.0) |

## Usage

```bash theme={"system"}
npx wgc federated-graph version set <name> --version <router compatibility version>
```

## Arguments

| Description | Type |
| - | - |
| The name of the federated graph. | string |

## Options

| Option | Type | Value | Required | Default value |
| - | - | - | - | - |
| `--version/-v` | string | The router compatibility version to be set. | true | n/a |
| `--namespace/-n` | string | The namespace where the federated graph exists. | false | "default" |

## Description

The `wgc federated-graph version set` command allows a [valid router compatibility version](/cli/router/compatibility-version/list) to be set for a federated graph.

## Output

If successful, a table will display the graph name, its namespace, the previous router compatibility version, and the current router compatibility version.

## Example

```bash theme={"system"}
npx wgc federated-graph version set mygraph -v 1
✔ Successfully set the router compatibility version for federated graph "prod" to 1.
┌────────────┬───────────┬──────────────────┬─────────────┐
│ GRAPH NAME │ NAMESPACE │ PREVIOUS VERSION │ NEW VERSION │
├────────────┼───────────┼──────────────────┼─────────────┤
│ prod       │ default   │ 2                │ 1           │
└────────────┴───────────┴──────────────────┴─────────────┘
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.