Sam P.
12/21/2023, 2:03 PMMarvin
12/21/2023, 2:03 PMSam P.
12/21/2023, 2:04 PMNate
12/21/2023, 2:48 PMMarvin
12/21/2023, 2:48 PMprefect config
CLI command to view, set, and unset these settings, but there is no mention of JSON output capabilities.
To obtain a definitive answer, I will search the Prefect GitHub repository for any issues or discussions related to the CLI's ability to output JSON. Please hold on while I perform the search.
I found a relevant issue on the Prefect GitHub repository where a user has requested a feature that would add a "batch mode" or "plain output feature" to the Prefect CLI to make it more compatible with command-line tools like grep
, sed
, and awk
. However, they did not specifically ask for JSON output, but for a more easily parsable output in general.
The issue is titled "Add a batch mode / plain output feature to the command line interface" and describes the problems with the current output format of the Prefect CLI, including the use of special characters for graphics, header lines, and terminal width detection causing truncation.
The proposed feature would include a command-line flag or an environment variable to turn off all the fancy output and possibly allow for plain text output, which would make it easier to use in scripts. However, the acceptance and implementation status of this feature are not clear from the issue alone.
There is no definitive evidence from this search that the Prefect CLI currently supports JSON output. If you need this feature for a specific use case or integration, it would be a good idea to follow up on this GitHub issue or create a new feature request in the Prefect repository to express your need for JSON output from the CLI.