New CLI feature: Testing your model using the OpenFGA CLI #207
aaguiarz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We just released a version of the OpenFGA CLI that lets you validate and test your FGA model without hitting an OpenFGA server 😍.
For example, given the following hello-fga.yaml file:
If you don't have the CLI installed, you can install it with
brew
:You can now run
fga model test --tests hello-fga.yaml
And you'll get:
You can also point to an external model by starting the YAML file by pointing to it, instead of including the full model.
We'll soon be releasing a Github Action to make it simpler to integrate it in your CI/CD pipelines. You can learn more here.
Let us know what you think!
Beta Was this translation helpful? Give feedback.
All reactions