88
99A command line tool, to quick set up, turn on/off (multiple) tron nodes(full/solidity), and monitor running status.
1010
11+ | Python | JDK |
12+ | --------| -----|
13+ | 3.7+ | 1.8 |
14+
1115* Learn more about tron on [ TRON Developer Hub] ( https://developers.tron.network/docs/full-node )
1216
1317* Join the community on [ TRON Discord] ( https://discord.gg/GsRgsTD )
@@ -66,17 +70,20 @@ pip install troncli
6670
6771## Usage
6872
69- | Command | Functions | Example1 | Example2 |
70- |--------------------------------------------------------------------------------------|------------------------------------|------------------------------------------------------------------------------------------------------------------ |---------------------------------------------------------------------------------------------------------------|
71- | tron-cli init --version | Init dirs and fetch code. | tron-cli init --version latest | tron-cli init --version 3.1.3 |
72- | tron-cli config --nettype --fullhttpport --solhttpport --fullgrpcport --solgrpcport | Create and customize config files. | tron-cli config --nettype private --fullhttpport 8500 --solhttpport 8600 --fullgrpcport 50051 --solgrpcport 5001 | tron-cli config --nettype main --fullhttpport 8500 --solhttpport 8600 --fullgrpcport 50051 --solgrpcport 5001 |
73- | tron-cli run --nodetype | Run node. | tron-cli run --nodetype full | tron-cli run --nodetype sol |
74- | tron-cli stop --pid | Stop node. | tron-cli stop --pid 7777 | tron-cli stop --pid 7777 |
75- | tron-cli status --node | Monitor nodes status. | tron-cli status --node all | tron-cli status --node 777 |
76- | tron-cli quick | Quick start. | tron-cli quick | tron-cli quick |
77- | tron-cli -h, --help | Check help manual. | tron-cli -h | tron-cli --help |
78-
73+ | Command | Functions | Example1 | Example2 |
74+ |--------------------------------------------------------------------------------------|------------------------------------|-----------------|---------------------------------------------------------------------------------------------------------------|
75+ | tron-cli init --version | Init dirs and fetch code. | tron-cli init | tron-cli init --version 3.1.3 |
76+ | tron-cli config --nettype --fullhttpport --solhttpport --fullgrpcport --solgrpcport | Create and customize config files. | tron-cli config | tron-cli config --nettype main --fullhttpport 8500 --solhttpport 8600 --fullgrpcport 50051 --solgrpcport 5001 |
77+ | tron-cli run --nodetype | Run node. | tron-cli run | tron-cli run --nodetype sol |
78+ | tron-cli stop --pid | Stop node. | tron-cli stop | tron-cli stop --pid 7777 |
79+ | tron-cli status --node | Monitor nodes status. | tron-cli status | tron-cli status --node 777 |
80+ | tron-cli quick | Quick start. | tron-cli quick | tron-cli quick |
81+ | tron-cli -h, --help | Check help manual. | tron-cli -h | tron-cli --help |
82+ #### overall
7983
84+ ```
85+ tron-cli -h
86+ ```
8087```
8188usage: tron-cli [ -h] {init,config,run,stop,status,quick} ...
8289
@@ -87,13 +94,86 @@ optional arguments:
8794
8895subcommands:
8996 {init,config,run,stop,status,quick}
90- init Init dirs and fetch code. >> Parameter(s): --version
91- config Create customize config files. >> Parameter(s):
92- --nettype --fullhttpport --solhttpport --fullgrpcport
93- --solgrpcport
94- run Run node. >> Parameter(s): --nodetype
95- stop Stop node. >> Parameter(s): --pid
96- status Monitor nodes status. >> Parameter(s): --node
97+ init Init dirs and fetch code.
98+ config Create customize config files.
99+ run Run node.
100+ stop Stop node.
101+ status Monitor nodes status.
97102 quick Quick start. (run a full private node by one command)
98- >> Example: tron-cli quick
103+ ```
104+
105+ ##### subcommand: init
106+
107+ ```
108+ tron-cli init -h
109+ ```
110+ ```
111+ usage: tron-cli init [ -h] [ --version VERSION]
112+
113+ optional arguments:
114+ -h, --help show this help message and exit
115+ --version VERSION specify java-tron version
116+ ```
117+
118+ ##### subcommand: config
119+
120+ ```
121+ tron-cli config -h
122+ ```
123+ ```
124+ usage: tron-cli config [ -h] [ --nettype NETTYPE] [ --fullhttpport FULLHTTPPORT]
125+ [ --solhttpport SOLHTTPPORT] [ --fullrpcport FULLRPCPORT]
126+ [ --solrpcport SOLRPCPORT] [ --enablememdb ENABLEMEMDB]
127+
128+ optional arguments:
129+ -h, --help show this help message and exit
130+ --nettype NETTYPE specify net type [ main, private]
131+ --fullhttpport FULLHTTPPORT
132+ specify full http port
133+ --solhttpport SOLHTTPPORT
134+ specify solidity http port
135+ --fullrpcport FULLRPCPORT
136+ specify full rpc port
137+ --solrpcport SOLRPCPORT
138+ specify solidity rpc port
139+ --enablememdb ENABLEMEMDB
140+ ```
141+
142+ ##### subcommand: run
143+
144+ ```
145+ tron-cli run -h
146+ ```
147+ ```
148+ usage: tron-cli run [ -h] [ --nodetype NODETYPE]
149+
150+ optional arguments:
151+ -h, --help show this help message and exit
152+ --nodetype NODETYPE specify node type [ full, sol]
153+ ```
154+
155+ ##### subcommand: stop
156+
157+ ```
158+ tron-cli stop -h
159+ ```
160+ ```
161+ usage: tron-cli stop [ -h] --pid PID
162+
163+ optional arguments:
164+ -h, --help show this help message and exit
165+ --pid PID stop node by given pid
166+ ```
167+
168+ ##### subcommand: status
169+
170+ ```
171+ tron-cli status -h
172+ ```
173+ ```
174+ usage: tron-cli status [ -h] [ --node NODE]
175+
176+ optional arguments:
177+ -h, --help show this help message and exit
178+ --node NODE check specific node detail by pid
99179```
0 commit comments