---
title: influxd-ctl node-labels set
description: The influxd-ctl node-labels set command adds or updates labels on an InfluxDB Enterprise node.
url: https://docs.influxdata.com/enterprise_influxdb/v1/tools/influxd-ctl/node-labels/set/
estimated_tokens: 245
publisher: InfluxData
canonical: https://docs.influxdata.com/enterprise_influxdb/v1/tools/influxd-ctl/node-labels/set/
date: '2023-10-05T14:23:52-06:00'
lastmod: '2023-10-05T14:23:52-06:00'
---

The `influxd-ctl node-labels set` command adds or updates labels on an
InfluxDB Enterprise node.
Node labels appear in the output of[`influxd-ctl show`](/enterprise_influxdb/v1/tools/influxd-ctl/show/).

## Usage

```sh
influxd-ctl node-labels set [flags]
```

## Flags

|  Flag   |            Description             |
|---------|------------------------------------|
|`-labels`|JSON object of label key-value pairs|
|`-nodeid`|              Node ID               |

*See [`influxd-ctl` global flags](/enterprise_influxdb/v1/tools/influxd-ctl/#influxd-ctl-global-flags).*

## Examples

```sh
influxd-ctl node-labels set -nodeid 5 -labels '{"az":"us-west","nickname":"mars"}'
```

#### Related

* [Manage node labels](/enterprise_influxdb/v1/administration/manage/node-labels/)
* [influxd-ctl show](/enterprise_influxdb/v1/tools/influxd-ctl/show/)
| Flag | Description |
| --- | --- |
| Flag | Description |
| -labels | JSON object of label key-value pairs |
| -nodeid | Node ID |
