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-98] Add schema convert and schema apply to FGA module #13

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

atainter
Copy link
Contributor

@atainter atainter commented Aug 28, 2024

Usage:
Convert a schema to json

workos fga schema convert ./schema.txt --to json 

Write to a file

./bin/workos-cli fga schema convert ./schema.txt --to json --output raw > test.json

Apply a schema

workos-cli fga schema apply ./schema.txt

Apply a schema with verbose output and fail on warnings

workos-cli fga schema apply ./schema.txt -v --strict

Copy link

linear bot commented Aug 28, 2024

go.sum Show resolved Hide resolved
internal/cmd/fga.go Outdated Show resolved Hide resolved
internal/cmd/fga.go Outdated Show resolved Hide resolved
@atainter atainter merged commit d46f62c into main Aug 28, 2024
2 checks passed
@atainter atainter deleted the at-convert-schemas branch August 28, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants