Install the CLI
StreamingFast Substreams CLI installation documentation
Last updated
Was this helpful?
StreamingFast Substreams CLI installation documentation
Last updated
Was this helpful?
substreams
CLIUsed for connecting to endpoints, streaming data in real time, and packaging custom modules.
You can use our published Substreams CLI Docker image an assign an alias to Docker. We mount the API token as SF_API_TOKEN
in the alias so that credentials are known to the CLI running inside Docker.
There are several CLI binaries available for different operating systems. Choose the correct platform in the .
If you are on MacOS, you can use the following command:
If you are on Linux, you can use the following command:
Important: Add $HOME/go/bin to the system path if it's not already present.
A successful installation will print the version that you have installed.
If you plan to build your own Substreams (i.e. write Rust code to extract data from the blockchain), you will need several dependencies to set up your developer environment:
Tip: Instructions are also provided for cloud-based Gitpod setups.
wasm32-unknown-unknown
target
Ensure you have the wasm32-unknown-unknown
target installed on your Rust installation, if unsure, you can install it with:
Buf simplifies the generation of typed structures in any language. Buf uses a remote builder executed on the Buf server, so an internet connection is required to generate Rust bindings from Protobuf definitions.
Run the passing the --version
flag to check the success of the installation.
Developing Substreams modules requires a working compilation environment.
There are . Install Rust through curl
by using:
Visit the for additional information and .
Note: and are compatible.