Skip to content

Commit e96e70c

Browse files
authored
doc: Clarify how list argument differentiates objects (#590)
1 parent 5866451 commit e96e70c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wiki/Usage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,17 @@ linode-cli linodes create --region us-east --type g6-nanode-1 --tags tag1 --tags
9393
```
9494

9595
Lists consisting of nested structures can also be expressed through the command line.
96+
Duplicated attribute will signal a different object.
9697
For example, to create a Linode with a public interface on `eth0` and a VLAN interface
9798
on `eth1` you can execute the following::
9899
```bash
99100
linode-cli linodes create \
100101
--region us-east --type g6-nanode-1 --image linode/ubuntu22.04 \
101102
--root_pass "myr00tp4ss123" \
103+
# The first interface (index 0) is defined with the public purpose
102104
--interfaces.purpose public \
105+
# The second interface (index 1) is defined with the vlan purpose.
106+
# The duplicate `interfaces.purpose` here tells the CLI to start building a new interface object.
103107
--interfaces.purpose vlan --interfaces.label my-vlan
104108
```
105109

0 commit comments

Comments
 (0)