Graphql-engine: docs: add top level entry on configuring hasura CLI with admin secret

Created on 9 Mar 2019  路  3Comments  路  Source: hasura/graphql-engine

Many different ways of doing it right?

  1. .env file
  2. --admin-secret flag
  3. config.yaml entry, but this is not good for version control
  4. env var on bash, export or prepend to command

@shahidhk I couldn't find a quick reference in the docs.

docs quickfix high

Most helpful comment

Would be nice if you could load vars from .env in config.yaml, e.g.

# config.yaml (checked in to git repo)
endpoint: https://xxxxxxxx
admin_secret: ${HASURA_ADMIN_SECRET}
# .env (not in git repo)
HASURA_ADMIN_SECRET=xxxxxxxxxxxxxxx

All 3 comments

.env is not supported. We can add the other docs soon.

Would be nice if you could load vars from .env in config.yaml, e.g.

# config.yaml (checked in to git repo)
endpoint: https://xxxxxxxx
admin_secret: ${HASURA_ADMIN_SECRET}
# .env (not in git repo)
HASURA_ADMIN_SECRET=xxxxxxxxxxxxxxx

This has been documented here.

Was this page helpful?
0 / 5 - 0 ratings