> [!WARNING] > Please wait with this issue, we are discussing with our Product Manager to consider this issue. There is an option to run `2ms rules` and list all the available rules (filtered by `--include-rules` and other arguments). An internal user requested an option to print the rules in JSON format to easily parse it and display it to the user. Need to add a flag `--json` that will print the rules as JSON. ```json { "rule id": { "description": "rule description", "tags": ["tag1", "tag2"] } } ```
Warning
Please wait with this issue, we are discussing with our Product Manager to consider this issue.
There is an option to run
2ms rulesand list all the available rules (filtered by--include-rulesand other arguments).An internal user requested an option to print the rules in JSON format to easily parse it and display it to the user.
Need to add a flag
--jsonthat will print the rules as JSON.{ "rule id": { "description": "rule description", "tags": ["tag1", "tag2"] } }