From 0b1241d371534f7281c05d581789ee83e2066766 Mon Sep 17 00:00:00 2001 From: Kharec Date: Fri, 21 Nov 2025 13:11:47 +0100 Subject: [PATCH] docs: update readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ef3bbce..76b83cb 100644 --- a/README.md +++ b/README.md @@ -266,6 +266,14 @@ All CLI commands support JSON output for easier parsing and integration with scr ./bin/goyco --json status | jq '.status' ``` +You can also set JSON output as the default by setting the `CLI_JSON_OUTPUT` environment variable to `true` in your `.env` file: + +```bash +CLI_JSON_OUTPUT=true +``` + +When set, all CLI commands will output JSON by default. You can still override this by using the `--json` flag explicitly or by setting it to `false` in the environment variable. + **Note for destructive operations**: When using `--json` with `prune` commands, you must also use the `--yes` flag to skip interactive confirmation prompts: ```bash