The XRPLD Network Generator CLI is a command-line interface tool designed to facilitate the creation, management, and interaction with XRPLD networks and standalone ledgers. This tool allows users to easily start, stop, remove, and update XRPLD nodes, as well as enable amendments on the network.
- Ripple:
1.12.0
- Xahau:
2024.1.25-release+738
Before using the XRPLD Network Generator CLI, ensure that you have the following prerequisites installed:
- Python ^3.9.6
- Docker
- Git (for cloning the repository)
To install the XRPLD Network Generator CLI, use pypi to install the package.
pip3 install xrpld-netgen --break-system-packages
Add/Make sure the path is in your profile
export PATH="/usr/local/bin:$PATH"
The CLI provides several commands to manage XRPLD networks and standalone ledgers:
- xrpl
- xahau
To start a network or standalone ledger, use the start
command followed by the name of the network or standalone ledger.
xrpld-netgen create:network --protocol [PROTOCOL] --build_version [BUILD_VERSION] --validators [NUM_VALIDATORS]
To start a network or standalone ledger, use the start
command followed by the name of the network or standalone ledger.
xrpld-netgen start --name [PROTOCOL] + [BUILD_VERSION]
To stop a running network or standalone ledger, use the stop
command followed by the name of the network or standalone ledger.
xrpld-netgen stop --name [PROTOCOL] + [BUILD_VERSION]
To remove an existing network or standalone ledger, use the remove
command followed by the name of the network or standalone ledger.
xrpld-netgen remove --name [PROTOCOL] + [BUILD_VERSION]
To update a node in the network, use the update:version
command followed by the node ID and the new version.
xrpld-netgen update:version --node_id [NODE_ID] --node_type [NODE_TYPE] --version [NEW_VERSION]
To enable an amendment on a node, use the enable:amendment
command followed by the amendment name and node ID.
xrpld-netgen enable:amendment --amendment_name [AMENDMENT_NAME] --node_id [NODE_ID] --node_type [NODE_TYPE]
To create a standalone ledger, use the up:standalone
command with the necessary parameters.
xrpld-netgen up:standalone --version [BUILD_VERSION]
If version is omitted then the current release is built
To remove a standalone ledger, use the down:standalone
command.
xrpld-netgen down:standalone --name [PROTOCOL] + [BUILD_VERSION]
name
is not required when running current release
For any issues or questions regarding the XRPLD Network Generator CLI, please refer to the repository's issue tracker or contact the maintainers.
To install the XRPLD Network Generator CLI, clone the repository to your local machine and navigate to the directory containing the cli.py
file.
git clone https://github.com/Transia-RnD/xrpld-network-gen
cd xrpld-network-gen