Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fga --version should return the version of the OpenFGA server #274

Open
aaguiarz opened this issue Mar 9, 2024 · 1 comment
Open

fga --version should return the version of the OpenFGA server #274

aaguiarz opened this issue Mar 9, 2024 · 1 comment

Comments

@aaguiarz
Copy link
Member

aaguiarz commented Mar 9, 2024

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`
@Siddhant-K-code
Copy link
Contributor

Siddhant-K-code commented Jun 14, 2024

To implement this, we need a server endpoint that returns the OpenFGA server version in a JSON response. Do we have an endpoint like https://api.us1.fga.dev/version (API Url is a example taken from readme) that returns a JSON response similar to this?

{
  "version": "v1.5.0"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants