-
Linux/macOS
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bashThis will install the Hasura CLI in
/usr/local/bin. You might have to provide yoursudopassword depending on the permissions of your/usr/local/binlocation.If you’d prefer to install to a different location other than
/usr/local/bin, set theINSTALL_PATHvariable accordingly:curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | INSTALL_PATH=$HOME/bin bash
You can also install a specific version of the CLI by providing the
VERSIONvariable:curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.26.0 bash -
Windows
Download the binary
cli-hasura-windows-amd64.exeavailable under Assets of the latest release from the GitHub release page: https://github.com/hasura/graphql-engine/releases
go get github.com/hasura/graphql-engine/cli/cmd/hasuragit clone https://github.com/hasura/graphql-engine
cd graphql-engine/cli
make deps
make build-cli-ext copy-cli-ext
make build
# binaries will be in _output directoryhasura init --directory <my-project> --endpoint <graphql-endpoint> --admin-secret <admin-secret>
cd <my-project>
hasura consoleCheckout the contributing guide.