# CLI Cortex Framework config


`uv run cortex-config` configures local Google Cloud Cortex Framework user
preferences, such as global telemetry consent in
`~/.cortex/cortex-framework-consent.properties`.

## Synopsis

```bash
uv run cortex-config [-h] {telemetry} ...
```

## Sub-commands

Use the following sub-commands to manage specific configurations and
preferences:

### `telemetry`

Globally manage telemetry data collection consent.

```bash
uv run cortex-config telemetry {enable|disable|status}
```

- `enable`: Opt in and globally enable telemetry collection. This updates the local consent properties file to `enable_telemetry=true`.
- `disable`: Opt out and globally disable telemetry collection. This updates the local consent properties file to `enable_telemetry=false`.
- `status`: Display the current telemetry consent state. Reports `ENABLED` by default before `~/.cortex/cortex-framework-consent.properties` exists.

## Options

The following table describes the command-line options for
`uv run cortex-config`:


| Flag | Description | Default |
| `-h, --help` | Show help message and exit. | None |
|---|---|---|

<br />

## Examples

Check or disable global telemetry consent on your workstation:

```bash
uv run cortex-config telemetry status

uv run cortex-config telemetry disable
```

## What's next

- Learn about anonymous telemetry collection and opt-out controls in [Telemetry](https://docs.cloud.google.com/cortex/docs/telemetry.md.txt).
- Configure workspace settings in [Deployment configuration](https://docs.cloud.google.com/cortex/docs/deployment-configuration.md.txt).