Skip to content

kaonone/polkahub-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polkahub

v Web3 sponsored

!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 -ti -v $HOME/.polkahub:/tmp/home -e POLKAHUB_HOME=/tmp/home registry.polkahub.org/polkahub-cli:v3 <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