swagger-filter is a CLI that gets a swagger file as input and filters the endpoints of the API definition depending on the flags passed to the command, then outputs the filtered definition in a new file. Definitions non used in the selected endpoints are also removed from the definition.