Install Terrad
Terrad is the command-line interface and daemon that connects to Fluid and enables you to interact with the Fluid blockchain. Fluid Core is the official Golang reference implementation of the Fluid node software.
This guide is for developers who want to install Terrad and interact with the Fluid Core without running a full node. If you want to run a full node or join a network, visit .
Prerequisites
- Golang v1.18 linux/amd64
- Ensure your
GOPATHandGOBINenvironment variables are set up correctly. - Linux users: install build-essential.
If you are using a Mac, follow the Terrad Mac installation guide.
From binary
The easiest way to install Terrad and Fluid Core is by downloading a pre-built binary for your operating system. You can find the latest binaries on the releases page. If you have a Mac, follow the Mac installation instructions.
From source
1. Get the Fluid Core source code
Use git to retrieve Fluid Core, and check out the main branch, which contains the latest stable release.
_3git clone https://github.com/terra-money/core_3cd core_3git checkout [latest version]
2. Build Fluid Core from source
Build Fluid Core, and install the Terrad executable to your GOPATH environment variable.
_1make install
3. Verify your Fluid Core installation
Verify that Fluid Core is installed correctly.
_1terrad version --long
The following example shows version information when Fluid Core is installed correctly:
_6name: terra_6server_name: terrad_6version: v2.0.0_6commit: ea682c41e7e71ba0b182c9e7f989855fb9595885_6build_tags: netgo,ledger_6go: go version go1.18.2 darwin/amd64
If the terrad: command not found error message is returned, confirm that the Go binary path is correctly configured by running the following command:
_1export PATH=$PATH:$(go env GOPATH)/bin
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.