Skip to content

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Jan 8, 2026

Summary

  • Add "JSON Output" section to main CLI reference page explaining -o json usage
  • Document --output json flag for all supported commands in apps.mdx and browsers.mdx
  • Add browser-pools CLI section with JSON output documentation
  • Add profiles CLI section with JSON output documentation

This documents the JSON output feature being added in kernel/cli#67.

Documentation added for:

Apps (reference/cli/apps.mdx):

  • kernel deploy - JSONL streaming output
  • kernel deploy history - JSON array
  • kernel invoke - JSONL streaming output
  • kernel app list - JSON array
  • kernel app history - JSON array

Browsers (reference/cli/browsers.mdx):

  • kernel browsers list/create/view/get - JSON output
  • kernel browsers replays list/start - JSON output
  • kernel browsers process exec/spawn - JSON output
  • kernel browsers fs file-info/list-files - JSON output
  • kernel extensions list/upload - JSON output
  • kernel proxies list/get/create - JSON output
  • kernel browser-pools list/create/get/update/acquire - JSON output
  • kernel profiles list/get/create - JSON output

Test plan

  • Verify docs render correctly in local preview
  • Verify links are not broken

Note

Introduces machine-readable output docs and expands CLI coverage.

  • Adds JSON Output section in reference/cli.mdx with examples for -o json and JSONL streaming
  • Documents --output json for key commands in Apps (deploy/invoke JSONL, deploy history, app list, app history JSON arrays)
  • Extends Browsers docs with --output json for browsers list/create/view/get, replays (list/start), process (exec/spawn), and filesystem (file-info/list-files); also for extensions and proxies
  • Adds new sections: Browser pools and Profiles, including list/get/create/update/acquire/release/delete/flush commands with JSON output
  • Minor copy tweaks and unit formatting standardization (e.g., 64 KiB, 60 s)

Written by Cursor Bugbot for commit dd12f8f. This will update automatically on new commits. Configure here.

Document JSON output support for CLI commands:
- Add JSON Output section to main CLI reference page
- Document --output json flag for deploy, invoke, app commands
- Document --output json flag for browsers, browser-pools, profiles
- Document --output json flag for extensions, proxies
- Add browser-pools and profiles CLI sections

Related to kernel/cli#67
| `--force` | Overwrite an existing version with the same label. |
| `--env <KEY=VALUE>`, `-e` | Set environment variables (repeatable). |
| `--env-file <file>` | Load environment variables from a file (repeatable). |
| `--output json`, `-o` | Output JSONL (one JSON object per line for each deployment event). |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: in these flag tables, -o likely still needs the json argument (consistent with the examples in reference/cli.mdx). Might be clearer to document as -o json (same for the other --output json rows in this PR).

Suggested change
| `--output json`, `-o` | Output JSONL (one JSON object per line for each deployment event). |
| `--output json`, `-o json` | Output JSONL (one JSON object per line for each deployment event). |

@rgarcia rgarcia requested a review from Sayan- January 8, 2026 23:53
|------|-------------|
| `--yes`, `-y` | Skip confirmation. |

## Browser pools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could cross link to /browsers/pools page here

### `kernel browser-pools flush <id-or-name>`
Destroy all idle browsers in the pool.

## Profiles
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could cross link to /browsers/profiles page here

Copy link
Contributor

@Sayan- Sayan- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeet

I do think tembo is right though ^^

- Add cross-links to /browsers/pools and /browsers/profiles pages
- Fix flag documentation: use `-o json` instead of just `-o` for consistency
@rgarcia rgarcia merged commit 44aadde into main Jan 9, 2026
1 of 2 checks passed
@rgarcia rgarcia deleted the add-json-output-docs branch January 9, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants