Installation
Prerequisites
- Python 3.10 or later
pip21.0 or greatersetuptools68.0 or greater
Install from PyPI
The recommended way to install the GreenNode CLI is to use pip in a virtualenv:
or, if you are not installing in a virtualenv, to install globally:
or for your user:
If you have the grncli package installed and want to upgrade to the latest version:
Install from source
To install with development dependencies:
Bundled installer
On Linux and macOS, the GreenNode CLI can be installed using a standalone installer that creates an isolated virtualenv:
This installs to ~/.local/lib/GreenNode and symlinks grn to ~/.local/bin/. Make sure ~/.local/bin is in your PATH.
Offline install
For environments without internet access, you can build a self-contained bundle:
# On a machine with internet access
./scripts/make-bundle
# Transfer dist/grncli-bundle.zip to target machine, then:
unzip grncli-bundle.zip
cd grncli-bundle
./install-offline