sincecutoff.com
← all changes

hf adds discussions edit command

Introduced 2026-07-03 · score 0.96

HOW TO USE IT

When a discussion comment needs updating, retrieve its comment ID with `hf discussions info`, then edit it with `hf discussions edit`.

hf discussions info <owner>/<repo> <discussion_number>
hf discussions edit <owner>/<repo> <discussion_number> <comment_id> --body "<updated comment>"

WHY THIS HELPS

Edit a discussion from the CLI while maintaining a repository.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.22.0
  • REPO_ID (required): Repository ID, such as `<owner>/<repo>`.
  • NUM (required): Discussion or pull request number.
  • COMMENT_ID (required): ID of the comment to edit; retrieve it with `hf discussions info`.
  • --body TEXT: New comment text; supports Markdown.
  • --body-file PATH: Read the new comment from a file; `-` reads stdin.
  • --type / --repo-type: Repository type: model, dataset, space, or kernel; defaults to model.
  • --token: Hugging Face user access token.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card