Skip to content

Install the Astria CLI

The astria-go cli is a tool designed to make local rollup development as simple and dependency free as possible. It provides functionality to easily run the Astria stack and interact with the Sequencer.

Download using Curl

bash
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.9.0/astria-go-v0.9.0-darwin-arm64.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-go /usr/local/bin/
astria-go version
bash
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.9.0/astria-go-v0.9.0-darwin-amd64.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-go /usr/local/bin/
astria-go version
bash
curl -L https://github.com/astriaorg/astria-cli-go/releases/download/v0.9.0/astria-go-v0.9.0-linux-amd64.tar.gz > astria-cli.tar.gz
tar -xvzf astria-cli.tar.gz
mv astria-go /usr/local/bin/
astria-go version

View all releases here.

Build from Source

This requires Go and just to be installed on your system.

bash
git clone git@github.com:astriaorg/astria-cli-go.git
cd astria-cli-go
just build

# run the cli in the repo directory
just run version

# OR you can move the binary to a location in your PATH if you'd like
mv ./bin/astria-go /usr/local/bin/
astria-go version

Commands Used in this Tutorial

For more details on the avaliable commands and other cli features, see the cli resources.

CommandDescription
versionPrints the cli version.
helpShow help.
dev initDownloads binaries and initializes the local environment.
dev runRuns a minimal, local Astria stack.
sequencer blockheightGet the current block height of the sequencer.
sequencer createaccountCreate a new sequencer account.