Tags
This section details Tag-related Linode CLI commands.
list
Aliases: ls
Tags are User-defined labels attached to objects in your Account, such as Linodes.
Usage
The format accepted by this command.
linode-cli tags list [-h] [--order-by {}] [--order {asc,desc}]
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
label |
str |
example tag |
A Label used for organization of objects on your Account. |
create
Creates a new Tag and optionally tags requested objects with it immediately.
Usage
The format accepted by this command.
linode-cli tags create [-h] [--linodes linodes]
[--nodebalancers nodebalancers] [--domains domains]
[--label label] [--volumes volumes]
Sample
Examples of how this command might be used.
linode-cli tags create \
--label 'example tag' \
--linodes 123 \
--linodes 456 \
--volumes 9082 \
--volumes 10003
Arguments
Additional fields used to execute this request.
Name |
Type |
Example |
Description |
---|---|---|---|
--label * |
str |
example tag |
The new Tag. |
--domains |
[]int |
564 |
A list of Domain IDs to apply the new Tag to. |
--linodes |
[]int |
123 |
A list of Linode IDs to apply the new Tag to. |
--nodebalancers |
[]int |
10301 |
A list of NodeBalancer IDs to apply the new Tag to. |
--volumes |
[]int |
9082 |
A list of Volume IDs to apply the new Tag to. |
Result Attributes
The attributes returned by this command.
Name |
Type |
Example |
Description |
---|---|---|---|
label |
str |
example tag |
A Label used for organization of objects on your Account. |
delete
Aliases: rm
Remove a Tag from all objects and delete it.
Usage
The format accepted by this command.
linode-cli tags delete [-h] tagLabel
Parameters
Positional parameters used to define the resource this command should target.
Name |
Type |
Description |
---|---|---|
tagLabel |
str |
N/A |