Prefect CLI: Add a batch mode / plain output feature to the command line interface #6930
Open
3 tasks done
Labels
enhancement
An improvement of an existing feature
status:accepted
We may work on this; we will accept work from external contributors
First check
Prefect Version
2.x
Describe the current behavior
The prefect command line interface outputs information in a way that makes it difficult to use with commands like
grep
,sed
andawk
.If I run a command like
prefect deployment ls
, the command outputs two columns of information, but:Describe the proposed behavior
It would be great if there was an ENV var, or preferably a command line flag, that would turn off all of the fancy output, color codes, graphical characters, header/divider rows, and line truncation.
Example Use
I think a short flag would be best, like
-b
for batch mode or-q
for quiet:Or an env var:
Additional context
I can provide an example use case: deleting deployments with a certain name, something like:
There may be a better way to delete deployments that start and end with a certain string; I just made that up as an example.
The text was updated successfully, but these errors were encountered: