Skip to content

Use structured JSON output #371

@jerop

Description

@jerop

JSON output in headless mode returns structured data including response, statistics, and metadata. This format is ideal for programmatic processing and automation scripts.

https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/headless.md#json-output

We can use this to show the stats after a job is completed, otherwise show error message.

Metadata

Metadata

Assignees

Labels

priority/p0Critical and urgent e.g., critical security vulnerability, major breakage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions