---
title: 'repo tag'
weight: 190
generated: true
description: 'Tag operations'
---

<!-- Generated by scripts/gen-cli-docs.sh from the libfossil --help output. Do not edit; change the help text in cli/ and run make docs-gen. -->

```text
Usage: libfossil repo tag <command>

Tag operations

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

Commands:
  repo tag ls [<version>]
    List tags on an artifact

  repo tag add <tag> [<value>] [flags]
    Add a tag to an artifact
```

## repo tag ls

```text
Usage: libfossil repo tag ls [<version>]

List tags on an artifact

Arguments:
  [<version>]    Version to list tags for (default: tip)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output
```

## repo tag add

```text
Usage: libfossil repo tag add <tag> [<value>] [flags]

Add a tag to an artifact

Arguments:
  <tag>        Tag name
  [<value>]    Tag value (optional)

Flags:
  -h, --help              Show context-sensitive help.
  -R, --repo=STRING       Path to repository file
  -v, --verbose           Verbose output

      --version=STRING    Version to tag (default: tip)
```
