Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/actions/update-with-latest-versions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25
FROM golang:1.26

ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y jq && rm -rf /var/lib/apt/lists/*
Expand Down
722 changes: 627 additions & 95 deletions docs/reference/kubo/cli.md

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions docs/reference/kubo/generate-cli-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ Every command usable from the CLI is also available through the [RPC API v0](rpc
/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
/ip4/104.236.151.122/tcp/4001/p2p/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx
/ip4/104.236.176.52/tcp/4001/p2p/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z
\`\`\`

CLI with \`--enc=json\` produces the same JSON as the HTTP RPC API:
\`\`\`
> curl -X POST http://127.0.0.1:5001/api/v0/swarm/peers
{
\"Strings\": [
\"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ\",
\"/ip4/104.236.151.122/tcp/4001/p2p/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\",
\"/ip4/104.236.176.52/tcp/4001/p2p/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z\",
\"Peers\": [
{
\"Addr\": \"/ip4/104.131.131.82/tcp/4001\",
\"Peer\": \"QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ\",
...
}
]
}
\`\`\`
Expand Down
Loading
Loading