var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

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

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

🛣Set up your Go path

Before installing Terrad, ensure your Go path is set up correctly.

  1. 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.
Terminal
Copy
code ~/.zshrc
  1. Near the bottom of the file, add the following line:
Editor
Copy
export PATH=$PATH:$(go env GOPATH)/bin

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:

Terminal
CopyExpandClose
git clone https://github.com/terra-money/core
cd core
git checkout [latest version]

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.