# polymorfa routing-policy

> Commands under polymorfa routing-policy.

## Commands

- [polymorfa routing-policy get](https://docs.polymorfa.com/cli/routing-policy/get): Read Hybrid routing policy and its revision.
- [polymorfa routing-policy set](https://docs.polymorfa.com/cli/routing-policy/set): Update Hybrid routing at the exact revision. Ancestor restrictions still apply.

## polymorfa routing-policy get

Read Hybrid routing policy and its revision.

### Usage

```bash
polymorfa routing-policy get [flags]
```

### Flags

- `--scope <value>` (value, required). Policy authority to read or update. Values: `team`, `project`, `session`.
- `--session <value>` (value). Number session name for session scope.

Also accepts the [global flags](https://docs.polymorfa.com/cli#global-flags).

## polymorfa routing-policy set

Update Hybrid routing at the exact revision. Ancestor restrictions still apply.

### Usage

```bash
polymorfa routing-policy set [flags]
```

### Flags

- `--allow <value>` (value, repeatable). Allowed transport; repeat to allow both. Values: `linked_devices`, `official_api`.
- `--deny-all` (boolean). Disallow both transports at this scope.
- `--expected-revision <value>` (value, required). Revision from routing-policy get; default for an unsaved policy.
- `--prefer <value>` (value, required). Preferred transport or inherit. Values: `linked_devices`, `official_api`, `inherit`.
- `--scope <value>` (value, required). Policy authority to read or update. Values: `team`, `project`, `session`.
- `--session <value>` (value). Number session name for session scope.

Also accepts the [global flags](https://docs.polymorfa.com/cli#global-flags).
