Skip to content

Comments

docs: enrich auto-generated CLI reference with examples and description#2773

Merged
tempusfrangit merged 1 commit intomainfrom
feat/improve-cli-docs
Feb 24, 2026
Merged

docs: enrich auto-generated CLI reference with examples and description#2773
tempusfrangit merged 1 commit intomainfrom
feat/improve-cli-docs

Conversation

@tempusfrangit
Copy link
Member

@tempusfrangit tempusfrangit commented Feb 24, 2026

Summary

The auto-generated docs/cli.md was bare-bones — just flags, no context or examples. This adds Long descriptions and Example fields to the cobra command definitions for all major commands so the generated output is actually useful.

Commands updated

  • cog build — Long description + examples (tag, no-cache, separate-weights)
  • cog run — Long description + examples (python, scripts, env vars, ports)
  • cog push — Long description + examples (Replicate, generic registry, separate-weights)
  • cog init — Long description + example
  • cog predict — Examples (named inputs, file inputs, output path, JSON, pre-built image)
  • cog serve — Long description + examples (default port, custom port, curl test)
    Regenerates docs/cli.md and docs/llms.txt.

… docs

Add Long descriptions and Example fields to build, run, push, init,
predict, and serve commands so the auto-generated docs/cli.md includes
actionable usage examples and context.

Regenerate docs/cli.md and docs/llms.txt.
@tempusfrangit tempusfrangit requested a review from a team as a code owner February 24, 2026 18:58
@tempusfrangit tempusfrangit requested review from bfirsh and zeke February 24, 2026 18:59
@tempusfrangit tempusfrangit changed the title docs: enrich CLI command descriptions and examples for auto-generated docs docs: enrich auto-generated CLI reference with examples and description Feb 24, 2026
@tempusfrangit tempusfrangit merged commit 8ad381e into main Feb 24, 2026
54 of 56 checks passed
@tempusfrangit tempusfrangit deleted the feat/improve-cli-docs branch February 24, 2026 19:16
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.

2 participants