# mc tag

LLMS 索引： [llms.txt](/zh/llms.txt)

---

<a id="mc-tag"></a>

<a id="command-mc.tag"></a>

## 说明 {#id2}

[`mc tag`](#command-mc.tag) 命令用于添加、删除和列出与存储桶或对象关联的标签。

MinIO 支持为对象最多添加 10 个自定义标签。

## 子命令 {#id3}

[`mc tag`](#command-mc.tag) 包含以下子命令：

<table>
  <thead>
    <tr>
      <th><p>子命令</p></th>
      <th><p>说明</p></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-list/#command-mc.tag.list"><code>list</code></a></p></td>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-list/#command-mc.tag.list"><code>mc tag list</code></a> 命令列出存储桶或对象上的所有标签。</p></td>
    </tr>
    <tr>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-remove/#command-mc.tag.remove"><code>remove</code></a></p></td>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-remove/#command-mc.tag.remove"><code>mc tag remove</code></a> 命令用于移除存储桶或对象上的所有标签。</p></td>
    </tr>
    <tr>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-set/#command-mc.tag.set"><code>set</code></a></p></td>
      <td><p><a href="/zh/reference/minio-mc/mc-tag-set/#command-mc.tag.set"><code>mc tag set</code></a> 命令可为存储桶或对象设置一个或多个标签。</p></td>
    </tr>
  </tbody>
</table>
