Skip to content

Commit 6ec87b3

Browse files
Merge pull request #150 from GhoulKingR/gaianet-info
added `gaianet info` entry
2 parents 3790821 + eafe0aa commit 6ec87b3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/getting-started/cli-options.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Subcommands:
2121
init Initialize the GaiaNet node.
2222
run|start Start the GaiaNet node.
2323
stop Stop the GaiaNet node.
24+
info Show the device_id and node_id.
2425
2526
Options:
2627
--help Show this help message
@@ -110,6 +111,23 @@ The output is the following.
110111
[+] COMPLETED! The config.json is updated successfully.
111112
```
112113

114+
## info
115+
116+
You can use `gaianet info` to display the id of the current running node and device running the node.
117+
118+
```
119+
gaianet info
120+
```
121+
122+
Running the command gives this output:
123+
124+
```
125+
Node ID: 0x1234567890abcdef0987654321fedcbabcdef123
126+
127+
Device ID: device-fedcbabcdef0123456789098
128+
```
129+
130+
113131
## base
114132

115133
The `--base` option is global. You can combine it with other subcommands to specify a base directory for the Gaia node other than the `$HOME/gaianet`.

0 commit comments

Comments
 (0)