5 releases
0.3.0 | Feb 5, 2020 |
---|---|
0.2.6 | Dec 30, 2019 |
0.2.5 | Dec 30, 2019 |
0.2.2 | Dec 19, 2019 |
0.2.1 | Dec 18, 2019 |
#5 in #deploy
44KB
640 lines
polkahub
!Status: Active WIP!
polkahub cli for easier blockchain deployment.
Prerequisites
MacOS/Linux: none.
Windows: docker utility installed
Windows
On Windows machine you better use it through pre-compiled docker image like this:
docker run --rm -u`id -u`:`id -g` -ti -v $HOME/.polkahub:/tmp/home -e POLKAHUB_HOME=/tmp/home registry.polkahub.org/polkahub-cli:v2 <action> [ARGS]
MacOS / Linux
Install
Option 1: install with script
bash <(curl http://get.polkahub.org/ -L)
This will install polkahub binary in your /usr/local/bin
(MacOS) or /usr/bin
(Linux) directory
Option 2: if you are a Rust developer you probably already have cargo installed, so just add it to cargo index
cargo install polkahub
Usage
Depending on how you installed it you go either just polkahub
or cargo polkahub
in the next step
and you can create repo for your chain.
To explore all the options run:
(cargo) polkahub --help
Build from source
If you want to build your own binary from source, you are welcome to do so!
git clone https://github.com/akropolisio/polkahub-cli.git \
&& cd polkahub-cli/ \
&& cargo build --release \
&& sudo cp target/release/polkahub /usr/bin/polkahub \
&& sudo chmod +x /usr/bin/polkahub
License: Apache 2.0
Dependencies
~11–16MB
~304K SLoC