Skip to content

Commit

Permalink
Merge pull request #10650 from ipfs/chore/config-cmd-help
Browse files Browse the repository at this point in the history
Add example of setting array to config command help
  • Loading branch information
hsanjuan authored Jan 3, 2025
2 parents 9425421 + a4d13e3 commit 016c2a7
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 016c2a7

Please sign in to comment.