docs: update readme

This commit is contained in:
2025-11-21 13:11:47 +01:00
parent b300fc2f5e
commit 0b1241d371

View File

@@ -266,6 +266,14 @@ All CLI commands support JSON output for easier parsing and integration with scr
./bin/goyco --json status | jq '.status' ./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: **Note for destructive operations**: When using `--json` with `prune` commands, you must also use the `--yes` flag to skip interactive confirmation prompts:
```bash ```bash