---
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: 441
product: InfluxDB Enterprise v1
version: v1
---

# influxd-ctl node-labels set

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/)
