Install Terrad
Terrad is the command-line interface and node daemon that enables you to interact with the Terra blockchain. Terra Core is the official Golang reference implementation of the Terra node software.
This guide is for developers who want to install Terrad and interact with the Terra Core without running a full node. If you want to run a full node or join a network, use the documentation on how to run a full Terra node.
Prerequisites
- Golang v1.20.0 linux/amd64
- Ensure your
GOPATH
andGOBIN
environment variables are set up correctly. - Linux users: install build-essential.
From binary
The easiest way to install Terrad and Terra Core is by downloading a pre-built Linux binary. You can find the latest Linux binaries on the releases page.
If you are not using Linux, follow the instructions below.
From source
Before installing Terrad, ensure your Go path is set up correctly.
- Open your Bash profile in your code editor. If you use VS Code and 'zsh', you can run the following command in your terminal to open the file.
- Near the bottom of the file, add the following line:
Save the file and open a new terminal before proceeding.
1. Get the Terra Core source code
Use git
to retrieve Terra Core and check out the main
branch, which contains the latest stable release.
2. Build Terra Core from source
Build Terra Core, and install the Terrad executable to your GOPATH
environment variable.
3. Verify your Terra Core installation
Verify that Terra Core is installed correctly.
If Terra Core is installed correctly, you will get the following output:
1. Get the Terra Core source code
Use git
to retrieve Terra Core and check out the main
branch, which contains the latest stable release.
2. Build Terra Core from source
Build Terra Core, and install the Terrad executable to your GOPATH
environment variable.
3. Verify your Terra Core installation
Verify that Terra Core is installed correctly.
If Terra Core is installed correctly, you will get the following output:
Next steps
With Terrad installed, you can set up a local testing environment using LocalTerra.
For more information on Terrad commands and usage, visit Using Terrad.