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

# talkvalue path tag

> Manage Path tags from the CLI: create tags, attach them to channels and events, and group analytics by tag.

`talkvalue path tag` is the CLI surface of Path tags. Tags group channels and events under a shared label so the dashboard can roll up analytics by that label. For example, every LinkedIn-origin channel under a `LinkedIn` tag, or every customer event under a `Customer Day` tag. The CLI exposes the two write operations you script most often, plus list, update, delete, and detach as supporting commands.

## Subcommands

| Command                                       | Description                                                                                    |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [`tag create`](/cli/commands/path/tag/create) | Create a new tag by name.                                                                      |
| [`tag attach`](/cli/commands/path/tag/attach) | Attach a tag to a channel or event. Creates the tag inline if you pass `--name` for a new one. |

Additional read and cleanup commands are available from the same group:

* `talkvalue path tag list [--name <filter>]`. List every tag, optionally filtered by substring.
* `talkvalue path tag update <id> --name <new-name>`. Rename a tag.
* `talkvalue path tag delete <id> --confirm`. Delete a tag everywhere it is attached.
* `talkvalue path tag detach <sourceId> --tag-id <id>`. Remove a tag from a channel or event without deleting the tag itself.

## Typical workflow

```bash theme={null}
# Create a tag and attach it to two channels
talkvalue path tag create --name "LinkedIn"
talkvalue path tag attach 7 --name "LinkedIn"
talkvalue path tag attach 12 --name "LinkedIn"

# Or attach an existing tag by ID
talkvalue path tag list --name "LinkedIn"
talkvalue path tag attach 18 --tag-id 42
```

`attach --name` is the shortcut for "create if missing, attach either way". Once the tag exists you can keep referring to it by ID for the rest of the script.

## See also

* [Tags](/path/concepts/tags). What tags do in Path and how they roll up to analytics.
* [`path channel list`](/cli/commands/path/channel/list). Find channel IDs to attach tags to.
* [`path event list`](/cli/commands/path/event/list). Find event IDs to attach tags to.
* [`path analysis channel-attribution`](/cli/commands/path/analysis/channel-attribution). Analytics that respects tag-scoped filters.
