Often, we use projpack. CLI to create a fed file, but it depends on API Gateway jar and shared libraries, This project uses standard JDK libraries to create a fed file which will be useful to run from Azure Devops and other SaaS based CI/CD tools.
Example usage - https://github.com/axway-apim/ref-env