hasura / hasura/graphql-engine

support .env.local for hasura CLI

Open
#9,323 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/product-platform
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Hasura CLI currently only looks for environment varables like `HASURA_GRAPHQL_ADMIN_SECRET ` from `.env`
Traditionally we keep local development-specific environment variables in ` .env.local` (added to .gitignore)
It would be nice if Hasura CLI override environment variables from ` .env.local` as well.

Contributor guide

Open the contributing guide

Research direction

Start at the Hasura CLI entry point that loads variables from `.env`, then inspect how `.env.local` would be discovered and how precedence is handled. Look for existing environment-loading tests or commands to run; done means local values are loaded and override matching `.env` values without changing other behavior.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.