[WORK IN PROGRESS]
clive is a portmanteau of two words: CLI (command-line-interface) and Hive. Clive is an command line application for interacting with the Hive blockchain. Clive also has a terminal user-interface (TUI) that supports mouse-based navigation that is inspired by midnight commander. Both the CLI and the TUI are written in Python. Clive is being designed in part to replace the original Hive CLI which is primarily used by power users and for writing tests for Hive.
- python3.10
- poetry (for development)
Since clive is still in development, it's not available on PyPI. To install it in development mode, it's recommended to install it via poetry as it includes dependencies used during development.
-
Clone the repository
git clone https://gitlab.syncad.com/hive/clive.git
-
Create a virtual environment (you can do it your way, using poetry, pyenv, virtualenv, pipx, etc.)
cd clive/ # Go to repository root directory python3.10 -m venv venv/ # Create virtual environment in the venv/ directory . venv/bin/activate # Activate the virtual environment
-
Install CLIVE
poetry install # Install CLIVE and its dev-dependencies in the virtual environment
You can simply invoke the TUI application by running the clive
command.
If you want to use the CLI mode, pass an argument to the clive
command.
clive # Run the TUI application
clive --help # Run the CLI application
In order to run clive via Docker, you need to have Docker installed on your machine. You can find the installation instructions here.
You can then run a docker container with your desired version of Clive. Specify the first 8 characters of the commit you want to use, or use the "latest" postfix. The launch command (depending on the branch and chain version you want to use, e.g. TUI latest develop on testnet) will look like:
docker pull registry.gitlab.syncad.com/hive/clive/testnet-instance-develop:testnet-instance-latest && docker run -ti --detach-keys 'ctrl-@,ctrl-q' --registry.gitlab.syncad.com/hive/clive/testnet-instance-develop:testnet-instance-latest
If you want to run clive in the interactive CLI mode, you should include the --cli
flag in the command:
docker run -ti registry.gitlab.syncad.com/hive/clive/testnet-instance-develop:testnet-instance-latest --cli