linode-cli icon indicating copy to clipboard operation
linode-cli copied to clipboard

Explain in the docs how to add multiple tags when creating things

Open asauber opened this issue 6 years ago • 2 comments

You do it like this:

asauber@linaret2 ~ $ linode-cli linodes create --tags okay --tags wow --tags great --root_pass 'somethign20343##1'

Doesn't appear to be documented anywhere

asauber avatar Apr 17 '19 20:04 asauber

Rather than document this, maybe we should change this arg to use

nargs='*'

which has better behavior

asauber avatar Apr 17 '19 20:04 asauber

Whatever you do please consider also supporting comma delimited tags, e.g. --tags tag1,tag2. Right now this literally generates one tag tag1,tag2. I don't think that there is really a use for tags containing a comma, thus, it would make a good delimiter.

gsauthof avatar Aug 01 '20 18:08 gsauthof

Hey there!

I've put up a pull request to add documentation for specifying multi-value and nested arguments. I've also created a ticket in our internal tracker to look into implementing alternative methods of specifying lists, although this functionality is not planned to be implemented at the moment.

Let us know if you have any other feedback or suggestions :slightly_smiling_face:

lgarber-akamai avatar Oct 24 '22 14:10 lgarber-akamai