hasura / hasura/graphql-engine

"version" command requires specifying a database URL

Open
#7,390 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

With a recent build of graphql-engine:

```
$ graphql-engine version
Fatal Error: Either of --metadata-database-url or --database-url option expected
$ graphql-engine --database-url foo version
Hasura GraphQL Engine: v2.0.5
```

I'd expect to be able to run the version command without specifiying a database URL.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `graphql-engine version` without `--database-url`, then compare its argument handling with `graphql-engine --database-url foo version`. Trace the version command's validation path and verify that the command prints the engine version without requiring either database URL option.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.