Skip to content

Commit

Permalink
Add example of setting array to config command help
Browse files Browse the repository at this point in the history
Closes #10645
  • Loading branch information
gammazero committed Jan 2, 2025
1 parent 9425421 commit a4d13e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/commands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ Get the value of the 'Datastore.Path' key:
Set the value of the 'Datastore.Path' key:
$ ipfs config Datastore.Path ~/.ipfs/datastore
Set multiple values in the 'Addresses.AppendAnnounce' array:
$ ipfs config Addresses.AppendAnnounce --json \
'["/dns4/a.example.com/tcp/4001", "/dns4/b.example.com/tcp/4002"]'
`,
},
Subcommands: map[string]*cmds.Command{
Expand Down

0 comments on commit a4d13e3

Please sign in to comment.