# LABEL EDITCOMMENT

> Edit label comments with the Unity Version Control CLI.

## Description

Modifies the comment of a label.

### Usage

```bash
cm label | lb editcomment | edit <lbspec> (<new_comment> | -commentsfile=<comments_file>)
```

### Options

| Option / Argument | Description                                                                                         |
| :---------------- | :-------------------------------------------------------------------------------------------------- |
| lbspec            | The label whose comment will be edited. (Use `cm help objectspec` to learn more about label specs.) |
| new\_comment      | The new comment for the label.                                                                      |
| `-commentsfile`   | Reads the new comment from the specified file.                                                      |

## Help

### Remarks

* To clear the comment, pass an empty comment (`""`).
* Editing the comment of a label leaves the label on the changeset it's applied to.
* `edit` is an alias of `editcomment`. To create a label named "edit", use `cm label create edit`.

### Examples

The following example replaces the comment of label `BL001` with the content of `comment.txt`:

```bash
cm label editcomment lb:BL001 -commentsfile=comment.txt
```
