Package: troncli
TRON-CLITRON-CLI is a command line tool that allows developers to quickly set up and manage their TRON nodes and grid api service._________  ____  _  __    _______   ____
/_  __/ _ \/ __ \/ |/ /___/ ___/ /  /  _/
 / / / , _/ /_/ /    /___/ /__/ /___/ /  
/_/ /_/|_|\____/_/|_/    \___/____/___/PythonJDK3.6+Oracle 1.8Learn more about tron onTRON Developer HubJoin the community onTRON DiscordSource code onGithubProject onPypiInstallpippip install --upgrade pippip install troncliUsageInteractive Modetron-cli iQuickly set up what you want by answerinig a few questions.Quick Commandtron-cli quickBy default, it will set up a private test-net full node for you.You can also--nettype mainto set up a full node which syncs to main net.--reset Trueto reset allAdvanced Set upYou can set up a full node, solidity node, event node, and grid api service (local tron-grid) with more detailed configurations via the provided subcommands. See usage bytron-cli -h, and-hon each subcommands.ManualCommandFunctionsExample1Example2tron-cli init --version --resetInit dirs and fetch code.tron-cli inittron-cli init --version 3.2.2 --reset Truetron-cli config --nettype ---nettype --fullhttpport --solhttpport --eventhttpport --fullrpcport --solrpcport --eventrpcport --enablememdb --dbsyncmode --saveintertx --savehistorytx --gridport --dbname --dbusername --dbpasswordCreate and customize config files.tron-cli configtron-cli config --nettype private --fullhttpport 8500 --solhttpport 8600 --eventhttpport 8400 --fullrpcport 58500 --solrpcport 58600 --eventrpcport 58400 --enablememdb True --dbsyncmode async --saveintertx False --savehistorytx False --gridport 18891 --dbname events --dbusername tron --dbpassword 12345678 --reset Truetron-cli run --nodetypeRun node.tron-cli runtron-cli run --nodetype fulltron-cli stop --nodeStop node.tron-cli stoptron-cli stop --node 7777tron-cli status --nodeMonitor nodes status.tron-cli statustron-cli status --node 777tron-cli quick --resetQuick start.tron-cli quicktron-cli quick --nettype main --reset Truetron-cli log --nodetype --filterShow filtered log.tron-cli logtron-cli --nodetype sol --filter heighttron-cli iSwitch to Interactive Mode.tron-cli itron-cli itron-cli versionCheck installed troncli version.tron-cli versiontron-cli versiontron-cli -h, --helpCheck help manual.tron-cli -htron-cli --helpoveralltron-cli -husage: tron-cli [-h] {init,config,run,stop,status,quick,log,version,i} ...

which subcommand do you want?

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  {init,config,run,stop,status,quick,log,version,i}
    init                Init dirs and fetch code.
    config              Create customize config files.
    run                 Run node.
    stop                Stop node.
    status              Monitor nodes status.
    quick               Quick start. (run a full private/main node by one
                        command)
    log                 Show filtered log.
    version             Check installed troncli version.
    i                   Interactive Mode.subcommand: inittron-cli init -husage: tron-cli init [-h] [--version VERSION] [--reset RESET]

optional arguments:
  -h, --help         show this help message and exit
  --version VERSION  specify java-tron version
  --reset RESET      reset allsubcommand: configtron-cli config -husage: tron-cli config [-h] [--nettype NETTYPE] [--fullhttpport FULLHTTPPORT]
                       [--solhttpport SOLHTTPPORT]
                       [--eventhttpport EVENTHTTPPORT]
                       [--fullrpcport FULLRPCPORT] [--solrpcport SOLRPCPORT]
                       [--eventrpcport EVENTRPCPORT]
                       [--enablememdb ENABLEMEMDB] [--dbsyncmode DBSYNCMODE]
                       [--saveintertx SAVEINTERTX]
                       [--savehistorytx SAVEHISTORYTX] [--gridport GRIDPORT]
                       [--dbname DBNAME] [--dbusername DBUSERNAME]
                       [--dbpassword DBPASSWORD] [--reset RESET]

optional arguments:
  -h, --help            show this help message and exit
  --nettype NETTYPE     specify net type [main, private]
  --fullhttpport FULLHTTPPORT
                        specify full node http port
  --solhttpport SOLHTTPPORT
                        specify solidity node http port
  --eventhttpport EVENTHTTPPORT
                        specify event node http port
  --fullrpcport FULLRPCPORT
                        specify full node rpc port
  --solrpcport SOLRPCPORT
                        specify solidity node rpc port
  --eventrpcport EVENTRPCPORT
                        specify event node rpc port
  --enablememdb ENABLEMEMDB
                        enable/disable in memory db
  --dbsyncmode DBSYNCMODE
                        specify either db async or sync mode
  --saveintertx SAVEINTERTX
                        enable/disable save internal transcation
  --savehistorytx SAVEHISTORYTX
                        enable/disable save history transcation
  --gridport GRIDPORT   specify grid api port
  --dbname DBNAME       specify db name
  --dbusername DBUSERNAME
                        specify db user name
  --dbpassword DBPASSWORD
                        specify db password name
  --reset RESET         reset config to default settingssubcommand: runtron-cli run -husage: tron-cli run [-h] [--nodetype NODETYPE]

optional arguments:
  -h, --help           show this help message and exit
  --nodetype NODETYPE  specify node type [full, sol, event, grid]subcommand: stoptron-cli stop -husage: tron-cli stop [-h] [--node NODE]

optional arguments:
  -h, --help   show this help message and exit
  --node NODE  stop node by given node id or allsubcommand: statustron-cli status -husage: tron-cli status [-h] [--node NODE]

optional arguments:
  -h, --help   show this help message and exit
  --node NODE  check specific node detail by node idsubcommand: logtron-cli log -husage: tron-cli log [-h] [--nodetype NODETYPE] [--filter FILTER]

optional arguments:
  -h, --help           show this help message and exit
  --nodetype NODETYPE  specify node type [full, sol, event, grid]
  --filter FILTER      specify filter [number/height]subcommand: versiontron-cli version -husage: tron-cli version [-h]

optional arguments:
  -h, --help  show this help message and exitsubcommand: itron-cli i -husage: tron-cli i [-h]

optional arguments:
  -h, --help  show this help message and exitCommon Use CasesNotice: Take a look attron-cli ifirst, interactive mode should cover most use cases.I. set up private-net nodesa. set up full node onlytron-cli quickb. add a solidity nodetron-cli run --nodetype solII. set up main-net nodesa. inittron-cli initb. config to main-nettron-cli config --nettype mainc. run full nodetron-cli runIII. advanced config to start nodesa. initilizetron-cli init --version latest --reset Trueb. detail config (specify parameter to overwrite default)tron-cli config --nettype private --fullhttpport 8500 --solhttpport 8600 --eventhttpport 8400 --fullrpcport 58500 --solrpcport 58600 --eventrpcport 58400 --enablememdb True --dbsyncmode async --saveintertx False --savehistorytx False --gridport 18891 --dbname Null --dbusername Null --dbpassword Nullc. run full/soltron-cli run --nodetype fullIV. start private full node + event node + tron-grida. install mongodb and create user & dbb. initilizetron-cli initc. config (specify parameter to overwrite default)dbname dbusername dbpassword are required to settron-cli config --nettype private --fullhttpport 8500 --solhttpport 8600 --eventhttpport 8400 --fullrpcport 58500 --solrpcport 58600 --eventrpcport 58400 --enablememdb True --dbsyncmode async --saveintertx False --savehistorytx False --gridport 18891 --dbname events --dbusername tron --dbpassword 12345678d. run full nodetron-cli rune. run event nodetron-cli run --nodetype eventf. run tron-gridtron-cli run --nodetype gridV. start mainnet event node + tron-grida. install mongodb and create user & dbb. initilizetron-cli initc. config (specify parameter to overwrite default)dbname dbusername dbpassword are required to settron-cli config --nettype main --fullhttpport 8500 --solhttpport 8600 --eventhttpport 8400 --fullrpcport 58500 --solrpcport 58600 --eventrpcport 58400 --enablememdb True --dbsyncmode async --saveintertx False --savehistorytx False --gridport 18891 --dbname events --dbusername tron --dbpassword 12345678d. run event nodetron-cli run --nodetype evente. run tron-gridtron-cli run --nodetype gridFAQs on installationHow to fix "fail to build a wheel for psutil" error?a. please check if you installed clang correctly, or install it using homebrew:brew install --with-toolchain llvmb. please check if you are using python 3.xHow to test in virtual environment?a. create virtual environmentpython3 -m venv venvb. activate venv. ./venv/bin/activatec. install troncli in venvpip install tronclid. when done testing, or using the venv - to deactivate venvdeactivateChangelogVersion 1.0.6[X] Support java-tron version 3.5.0.1.[X] Add support for log config.[X] fix set up main-net syncing issue on event server;Version 1.0.5[X] I'm blushing to say, this is just for fixing a stupid typo.Version 1.0.4[X] fix set up main-net syncing issue.Version 1.0.2[X] fix enable_save_inter_tx and enable_save_history_tx config issue.[X] simplify interact mode default selection.Version 1.0.1[X] Fix private net broadcast failure and syncing issue.[X] Fix several typos.[X] Support java-tron version 3.2.5.Version 1.0.0highlight:Add interactive mode.Check and throw error messages with insturction when tron-cli has not initialized or configed.Support python version 3.6.details:[X] Add check init and config in config and run, throw error and instruction if catched.[X] Add interactive mode for whole walk through with key selections, which should cover most use cases.[X] Fix private event node config error on local host port.[X] quick - support pass in nettype[X] support python version 3.6Version 0.3.1[X] config - set a default committee proposal list - enable CreationOfContracts, DelegateResource, SameTokenName, TvmTransferTrc10 for private testnet[X] check/test/update troncli with java-tron version 3.2.4[X] reset running node and config -- on init and quick resetVersion 0.3.0highlight:Redesign config logic and provide more features.Add log subcommand to show log with filter.details:[X] Redesign config logic check and restore previous config settings. Only overwrite by given options.tron[X] add config -- reset: reset to default config[X] log - filter node logs[X] version - show current version and instruction to upgradeVersion 0.2.4[X] Fix get current node status async error.Version 0.2.3[X] Catch more errors.Version 0.2.2[X] Fixissue#17[X] check java install and JDK version[X] check python version[X] check git install[X] status - display recommended cpu / mem for running full nodes[X] status & run - display log locations[X] init & status - store and display java-tron node versions[X] status - show test account/witness's private key and address for private netVersion 0.2.1[X] store config, and show active config cmd in status[X] provide connection info in status[X] add --reset for quick[X] add more instruction in command[X] show ports info and cmd tips with run commandVersion 0.2.0highlight:Support event-node and tron-grid set up/config/run/stop/monitor.details:[X] support java-tron 3.2.2 with more config[X] add stop all feature[X] update logo and change node list structure[X] fix private net init account pk and address does not matchVersion 0.1.6[X] fix error on download progress bar when network not availableVersion 0.1.5highlight:Pre-release of support event-node and tron-grid set up/config/run/stop/monitor.details:[X] init - change file structure for event-node and tron-grid[X] init - add reset option and handler[X] init - fetch event-node code[X] init - fetch tron-grid code[X] utils - make git_clone a util function[X] utils - build util method to store more info and provide for status[X] config - add options and handlers for event-node[X] config - add options and handlers for tron-grid[X] config - add event-node build and raise errors[X] run - add event-node run[X] run - fire up tron-gridVersion 0.1.4[X] update to support version 3.2 fetch release, check version[X] compatible check with version 3.2 release, and update config handler[X] add more info message;[X] provide a more neat yet detail help info and commandVersion 0.1.3[X] run - check single ps status[X] keep track of all running nodes[X] run - monitor overall system status[X] set default value for all subcommand optionsVersion 0.1.2[X] catch download errors[X] add progress bar for download[X] colorful logo and msg[X] add more progress msg on ports config[X] add more progress msg on net_type config[X] add info msg type for instructions[X] move changelog to file[X] optimize progress barVersion 0.1.0[X] init - set up file folders, and get builds based on given version number[X] config - init basic config file in json format, and convert to java properties format and export[X] run - run a single main net full node[X] quick start[X] run - move 'run' to its handler, and async the call[X] stop - add sub cmd and its handler to stop all nodes (kill -15)[X] run - change log and data store location[X] config - add custom method to fire up private/shasta testnet[X] config - add custom method to change port number[X] config - add custom method to fire up solidity node[X] run - add option to run solidity node[X] pack to pip[X] Doc - add more instruction in readme fileFuture Features[ ] quick - add options to start common user cases[ ] restart - restart all running nodes[ ] clean up all std messages[ ] config - set default/customize committee proposal list[ ] log - show and filter nodes log[ ] dump - fetch a dump[ ] db - manage db, check and trim db[ ] manual - add more instruction for config[ ] interact - add interactive mode[ ] quiet - add quiet mode[ ] run - multiple (full) nodes[blocked] config -- add option to config to sync with newly deployed shasta testnet