Installing Ignite CLI on Linux
A quick guide to installing Ignite CLI on Linux
I have been using Ignite CLI for almost two years and it is extremely easy to create a custom blockchain using it. This tutorial is for those who want to get started creating custom blockchains.
I assume you are using Linux or Mac (you cannot use Windows unless you have a Linux subsystem enabled).
For starters, let’s work from our home folder. Go ahead and cd into it.
cd
Next let’s see if we have golang installed, which is a requirement.
go version
You should see an output like this:
root@localhost:~# go version
go version go1.19 linux/amd64
If it doesn’t say that, then please install golang before you continue.
Next, we need to install Ignite CLI.
You might get errors if you don’t have some packages installed, so you can update your system to include these commands:
sudo apt update
sudo apt install wget
sudo apt install curl
If prompted, please select type Yes and hit enter.
Copy and paste this command: (we assume you have sudo / root privileges)
sudo curl https://get.ignite.com/cli | sudo bash
sudo mv ignite /usr/local/bin/
You can check if it is properly installed by doing two things, First
which ignite
Which should output something like this:
root@localhost:~# which ignite
/usr/local/bin/ignite
Second, you can see which version was installed with this command:
ignite version
Now you are ready to start using Ignite CLI to create custom application specific Blockchains!
I highly recommend using the help flag to learn more about its commands. For example:
ignite help
You can learn more about each secondary/sub-commands by also using the help flag. For example, if we want to learn about scaffolding(aka building) a chain we can use this command.
ignite scaffold help
This is a good place to start. In my next tutorial, I will show how to use Ignite to create a fully functional blockchain. I hope you enjoyed reading!
References: