> ## Documentation Index
> Fetch the complete documentation index at: https://gtmsdk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gtm enrichment

> Command reference for gtm enrichment — LinkedIn enrichment commands. Generated from the CLI help text.

LinkedIn enrichment commands.

Every command follows the [CLI contract](/concepts/cli-contract): JSON on stdout, errors on stderr, and command-specific mutation safety controls. Keys resolve as described in [Secrets and API keys](/secrets).

## `gtm enrichment enrich`

Enrich records from LinkedIn via Harvest API.

### `gtm enrichment enrich fetch`

Fetch enrichment from Harvest API and write to file (no Attio changes).

Example:

gtm enrichment enrich fetch \
\--config enrichment\_config.json \
\--records records.json \
\--profile location \
\--output enriched\_output.json

```bash theme={"system"}
uv run gtm enrichment enrich fetch [OPTIONS]
```

| Option      | Type | Default | Description                                                       |
| ----------- | ---- | ------- | ----------------------------------------------------------------- |
| `--config`  | path | —       | Path to enrichment\_config.json                                   |
| `--records` | path | —       | Path to JSON file with records (record\_id, email, linkedin\_url) |
| `--profile` | text | —       | Enrichment profile ID (e.g., 'location', 'email', 'skills')       |
| `--output`  | path | —       | Path to write enriched records JSON                               |

### `gtm enrichment enrich upsert`

Batch upsert enriched records to Attio CRM.

Example:

gtm enrichment enrich upsert \
\--input enriched\_output.json

gtm enrichment enrich upsert \
\--input enriched\_output.json \
\--dry-run

```bash theme={"system"}
uv run gtm enrichment enrich upsert [OPTIONS]
```

| Option      | Type    | Default | Description                                          |
| ----------- | ------- | ------- | ---------------------------------------------------- |
| `--input`   | path    | —       | Path to enriched records JSON (from 'fetch' command) |
| `--dry-run` | boolean | `false` | Preview changes without updating Attio               |


## Related topics

- [CLI overview](/cli/index.md)
- [gtm attio](/cli/attio.md)
- [gtm apollo](/cli/apollo.md)
- [Launch week — gtm-sdk goes public (July 13, 2026)](/changelog/2026-07-13.md)
- [gtm accounts](/cli/accounts.md)
