Add example of setting array to config command help
Closes #10645 (cherry picked from commit a4d13e3f6bf418e48bd3870e60be2ceb932f6c0c)
gammazero committed
Jan 2, 2025 at 10:55 UTC
258c5e487db094f80f153fb3f6c921d909fb2f66
1 file changed
+5
core/commands/config.go
+5
@@ -55,6 +55,11 @@ Get the value of the 'Datastore.Path' key:
55
Set the value of the 'Datastore.Path' key:
56
57
$ ipfs config Datastore.Path ~/.ipfs/datastore
58
+
59
+Set multiple values in the 'Addresses.AppendAnnounce' array:
60
+
61
+ $ ipfs config Addresses.AppendAnnounce --json \
62
+ '["/dns4/a.example.com/tcp/4001", "/dns4/b.example.com/tcp/4002"]'
63
`,
64
},
65
Subcommands: map[string]*cmds.Command{