Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of setting array to config command help #10650

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading