fga-transformer-cli is a simple wrapper around the openfga syntax-transformer library to enable programatic transformation of OpenFGA DSLs to the JSON syntax.
This is useful in situations such as a pipeline.
This can be run from Node, or from the helper docker container
- Node 18 LTS
- NPM or Yarn
npm install @ozee-io/fga-transformer-cli
git clone [email protected]:Ozee-io/fga-transformer-cli.git
cd fga-transformer-cli
yarn install && yarn link
fga-transformer-cli --source "my/source/file.dsl" --target "my/destination/file.json"
- Docker
docker pull ghcr.io/ozee-io/openfga-syntax-transformer
# or build locally
git clone [email protected]:Ozee-io/fga-transformer-cli.git
docker build -t fga-transformer-cli .
docker run -v ${PWD}:/app fga-transformer-cli --source "my/source/file.dsl" --target "my/destination/file.json"