graphql-engine/cli
Aleksandra Sikora b4fd2e3f9f console and cli: run console in CLI mode for tests, misc CLI fixes (#368)
GitOrigin-RevId: 4563444387a4c9d02b5429729fe30bc87763288f
2021-01-20 20:18:44 +00:00
..
build
cmd/hasura
commands cli: support datasources 2021-01-18 17:12:09 +00:00
integration_test cli: support datasources 2021-01-18 17:12:09 +00:00
internal console and cli: run console in CLI mode for tests, misc CLI fixes (#368) 2021-01-20 20:18:44 +00:00
metadata cli: support datasources 2021-01-18 17:12:09 +00:00
migrate console and cli: run console in CLI mode for tests, misc CLI fixes (#368) 2021-01-20 20:18:44 +00:00
pkg/console console and cli: run console in CLI mode for tests, misc CLI fixes (#368) 2021-01-20 20:18:44 +00:00
plugins cli: misc fixes 2020-11-24 06:12:24 +00:00
seed cli: support datasources 2021-01-18 17:12:09 +00:00
telemetry
update cli: update promptui dependency (#51) 2020-11-18 13:36:24 +00:00
util cli: support datasources 2021-01-18 17:12:09 +00:00
version cli: fix cron triggers not being exported on a metadata export (close #5047) (#5060) 2020-06-16 14:38:36 +05:30
.gitignore
.realize.yaml
cli.go cli: support datasources 2021-01-18 17:12:09 +00:00
CONTRIBUTING.md
directory.go validate pwd is neither filesystem root nor an existing hasura project 2020-04-27 09:04:32 +05:30
get.sh cli: allow setting the release to get in cli/get.sh (#4348) 2020-06-25 17:56:53 +02:00
global_config.go
go.mod cli: update promptui dependency (#51) 2020-11-18 13:36:24 +00:00
go.sum cli: update promptui dependency (#51) 2020-11-18 13:36:24 +00:00
logger_hook.go
Makefile cli: support datasources 2021-01-18 17:12:09 +00:00
README.md cli: misc fixes 2020-11-24 06:12:24 +00:00

Hasura GraphQL Engine CLI

GoDoc

Installation

Download GraphQL Engine CLI bundled with Hasura CLI

  • Linux/macOS
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash
  • Windows

Download the binary cli-hasura-windows-amd64.exe available under Assets of the latest release from the GitHub release page: https://github.com/hasura/graphql-engine/releases

Download using go get

go get github.com/hasura/graphql-engine/cli/cmd/hasura

Build from source

git clone https://github.com/hasura/graphql-engine
cd graphql-engine/cli
make deps
make build
# binaries will be in _output directory

Usage

hasura init --directory <my-project> --endpoint <graphql-endpoint> --admin-secret <admin-secret>
cd <my-project>
hasura console

Contributing

Checkout the contributing guide.