mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
Merge pull request #2285 from ipfs/docs/cleanup-id-mans
Cleaned up `ipfs id` mans
This commit is contained in:
@ -19,8 +19,10 @@ import (
|
|||||||
u "github.com/ipfs/go-ipfs/util"
|
u "github.com/ipfs/go-ipfs/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const offlineIdErrorMessage = `ID command fails when run without daemon, we are working to fix this.
|
const offlineIdErrorMessage = `'ipfs id' currently cannot query information on remote
|
||||||
In the meantime, please run the daemon if you want to use 'ipfs id':
|
peers without a running daemon; we are working to fix this.
|
||||||
|
In the meantime, if you want to query remote peers using 'ipfs id',
|
||||||
|
please run the daemon:
|
||||||
|
|
||||||
ipfs daemon &
|
ipfs daemon &
|
||||||
ipfs id QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
|
ipfs id QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
|
||||||
@ -38,15 +40,15 @@ var IDCmd = &cmds.Command{
|
|||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Show IPFS Node ID info.",
|
Tagline: "Show IPFS Node ID info.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
Prints out information about the specified peer,
|
Prints out information about the specified peer.
|
||||||
if no peer is specified, prints out local peers info.
|
If no peer is specified, prints out information for local peers.
|
||||||
|
|
||||||
ipfs id supports the format option for output with the following keys:
|
'ipfs id' supports the format option for output with the following keys:
|
||||||
<id> : the peers id
|
<id> : The peers id.
|
||||||
<aver>: agent version
|
<aver>: Agent version.
|
||||||
<pver>: protocol version
|
<pver>: Protocol version.
|
||||||
<pubkey>: public key
|
<pubkey>: Public key.
|
||||||
<addrs>: addresses (newline delimited)
|
<addrs>: Addresses (newline delimited).
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
Arguments: []cmds.Argument{
|
Arguments: []cmds.Argument{
|
||||||
|
Reference in New Issue
Block a user