# CLI create BigQuery data agents


`uv run cortex-create-ca-agents` provisions and synchronizes BigQuery
conversational analytics data agents from deployed Google Cloud Cortex Framework data products.

## Synopsis

```bash
uv run cortex-create-ca-agents [-h] \
    [-c CONFIG_PATH | --config CONFIG_PATH] \
    [--enable-apis] [--dry-run] [--disable-telemetry]
```

Replace the following:

- `CONFIG_PATH`: path to your global configuration file, for example: `config/config.yaml`.

## Options

The following table describes the command-line options for
`uv run cortex-create-ca-agents`:


| Flag | Description | Default |
| `-h, --help` | Show the help message and exit. | None |
| `-c, --config CONFIG_PATH` | Path to the global `config.yaml` file containing your deployed `data.modules.products` and `conversationalAnalytics` configuration. | `config/config.yaml` |
| `--enable-apis` | Automatically enable missing required Google Cloud APIs (`bigquery.googleapis.com`, `geminidataanalytics.googleapis.com`, and `cloudaicompanion.googleapis.com`) on `buildEnvironment.buildProjectId` without prompting. Mutually exclusive with `--dry-run`. | `false` |
| `--dry-run` | Run read-only pre-flight checks (required APIs, target conversational analytics location, referenced BigQuery datasets and tables, and zero-cost dry-run validation of golden queries), build agent payloads, and report each agent's sync status without creating or updating data agents in Google Cloud. Mutually exclusive with `--enable-apis`. Telemetry event logging is suppressed during `--dry-run`. | `false` |
| `--disable-telemetry` | Temporarily disable telemetry event logging during execution. Telemetry is also automatically suppressed when `--dry-run` is set. For more information, see [Cortex Framework telemetry](https://docs.cloud.google.com/cortex/docs/telemetry.md.txt). | `false` |
|---|---|---|

<br />

## Examples

Run read-only pre-flight checks and preview synchronization status without
modifying Google Cloud resources:

```bash
export CORTEX_CONFIG_FILE=config/config.yaml

uv run cortex-create-ca-agents --config $CORTEX_CONFIG_FILE --dry-run
```

Provision and synchronize enabled conversational analytics data agents defined in
`config/config.yaml`:

```bash
export CORTEX_CONFIG_FILE=config/config.yaml

uv run cortex-create-ca-agents --config $CORTEX_CONFIG_FILE
```

## What's next

- Configure `conversationalAnalytics` and `agent_settings.yaml` in [Conversational analytics integration](https://docs.cloud.google.com/cortex/docs/conversational-analytics.md.txt).
- Register published data agents in Gemini with [`uv run cortex-register-gemini-agents`](https://docs.cloud.google.com/cortex/docs/uv-run-cortex-register-gemini-agents.md.txt).
- Publish and manage registered data agents in [Gemini integration](https://docs.cloud.google.com/cortex/docs/gemini.md.txt).
- Review configuration schema parameters in [Deployment configuration](https://docs.cloud.google.com/cortex/docs/deployment-configuration.md.txt#conversational-analytics-config).