The command
package builds a structured and extensible Command-Line Interface for Rubix Blockchain Platform.
Rubix CLI has the following top-level commands:
- boostrap
- chain-dump
- config
- did
- explorer
- node
- quorum
- run
- tx
- upgrade
- pin-service
- validate-chain
- version
addr
and port
are Global Glags, which can be used in any command. Their default values are localhost
and 20000
respectively.
Run rubixgoplatform -h
to know more
It consists of subcommands that are associated with managing boostrap nodes:
add
: Add IPFS bootstrap peerslist
: List all bootstrap peers from the configurationremove
: Remove bootstrap peer(s) from the configurationremove-all
: Removes all bootstrap peers from the configuration
To know more about the flags, run rubixgoplatform bootstrap [command] --help
It consists of subcommands that are associated with Token chain and SmartContract chain dumps.
smart-contract
: Get the dump of Smart Contract chaintoken
: Get the dump of Token chaindecode-token-chain
: Decodes token chain dump
To know more about the flags, run rubixgoplatform chain-dump [command] --help
It consists of subcommands that are associated with setting up DB and Services.
setup-db
: Setup Databasesetup-service
: Setup Service
To know more about the flags, run rubixgoplatform config [command] --help
It consists of subcommands that are associated with managing DIDs
balance
: Get the account balance information of a DIDcreate
: Create a DIDlist
: Fetch every DID present in the noderegister
: Register DID
To know more about the flags, run rubixgoplatform did [command] --help
It consists of subcommands that are associated with explorer.
add
: Add Explorer URLslist
: List all Explorer URLsremove
: Remove Explorer URLs
To know more about the flags, run rubixgoplatform explorer [command] --help
It consists of subcommands that are associated with Rubix node.
lock-rbt-tokens
: Lock RBT tokensmigrate
: Migrate Nodepeer
: Peer related subcommandsrelease-rbt-tokens
: Release all locked RBT tokensshutdown
: shut down the nodetoken-state-pinned-info
: Check if a Token state is pinned
To know more about the flags, run rubixgoplatform node [command] --help
It consists of subcommands associated with peer info of a node
add
: Add Peer detailslocal-id
: Get the local IPFS peer idping
: pings a peerquorum-status
: check the status of quorum
To know more about the flags, run rubixgoplatform node peer [command] --help
It consists of subcommands that are associated with Quorums.
add
: Add addresses present with quorumlist.json in the nodelist
: List all Quorumsremove-all
: Remove all Quorumssetup
: Setup up DID as a Quorumlist-token-states
: List all pledge token states of a nodeunpledge
: Unpledge all pledged tokens
To know more about the flags, run rubixgoplatform quorum [command] --help
This command is used to run a Rubix node. To know more about the flags, run rubixgoplatform run [command] --help
It consists of subcommands that are associated with transactions related to RBT tokens, Smart Contracts and NFT.
It consists of subcommands associated with RBT tokens
generate-test-tokens
: Generate Test RBT tokenstransfer
: Transfer RBT tokensself-transfer
: Self transfer RBT tokens
To know more about the flags, run rubixgoplatform tx rbt [command] --help
It consists of subcommands associated with Smart Contracts
deploy
: Deploy a Smart Contractexecute
: Execute a Smart Contractfetch
: Fetch a Smart Contract Tokengenerate
: Generate a Smart Contract Tokenpublish
: Publish a Smart Contract Tokensubscribe
: Subscribe to a Smart Contract
To know more about the flags, run rubixgoplatform tx smart-contract [command] --help
It consists of subcommands associated with NFTs
create
: Create an NFTlist
: List NFTs by DID
To know more about the flags, run rubixgoplatform tx nft [command] --help
It consists of subcommands associated with Data tokens
commit
: Commit a Data Tokencreate
: Create a Data Token
To know more about the flags, run rubixgoplatform tx data-token [command] --help
It consists of subcommands associated with Token pinning and recovery
pin
: Pins a token on a pinning service provider noderecover
: Recovers the pinned token from the pinning service provider node
To know more about the flags, run rubixgoplatform pin-service [command] --help
It consists of subcommands associated with operations related to node version migrations
unpledge-pow-tokens
: Unpledge any pledge tokens which were pledged as part of PoW based pledging
To know more about the flags, run rubixgoplatform upgrade [command] --help
This command validates token chain and smart contract chain.
To know more about the flags, run rubixgoplatform validate-chain --help
This command will output the Rubix binary version.