openfga / openfga/cli

`fga --version` should return the version of the OpenFGA server

Open
#274 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
102
Forks
49
Avg merge
1d 1h
Merged PRs (30d)
16

Description

If the CLI is configured to use an OpenFGA server, the fga --version command should also return the server version.

If the OpenFGA server does not expose that endpoint for some reason, it should display unknown

$ fga --version

fga CLI version v`0.2.6` (commit: `dc4e39648ec5b626fc5c44c4f9f77a1e15806ab7`, date: `2024-02-28T12:47:25Z`)
openfga version v`1.5.0`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Go implementation of the fga --version command and trace how the CLI is configured to contact an OpenFGA server. Done means the output includes the server version when available and displays unknown when the server does not expose that endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.