You can get JSON output from the CLI with the appropriate flags. For instance, many commands support appending flags for JSON output.
You might use:
prefect work-pool inspect <name> --output=json
or
prefect work-pool inspect <name> -o json
For example, if you want to inspect a work pool and get the details in JSON format, you can run:
prefect work-pool inspect my-pool --output=json
Here's the GitHub issue where this feature request is discussed: https://github.com/PrefectHQ/prefect/issues/13188.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.