diff --git a/docs/source/en/guides/cli.md b/docs/source/en/guides/cli.md index d5e412e5df..269259d1b1 100644 --- a/docs/source/en/guides/cli.md +++ b/docs/source/en/guides/cli.md @@ -1307,14 +1307,9 @@ To inspect a specific discussion or PR, pass the repo ID and the discussion numb >>> hf discussions info username/my-model 5 ``` -By default, only the discussion metadata (title, status, author, etc.) is shown. Add `--comments` to include the full conversation thread, or `--diff` to display the PR diff: +The output contains the discussion metadata (title, status, author, etc.) together with the full list of conversation events. To display the diff of a pull request, use `hf discussions diff` instead. -```bash ->>> hf discussions info username/my-model 5 --comments ->>> hf discussions info username/my-model 5 --diff -``` - -Use `--format json` for machine-readable output, and `--no-color` to strip ANSI colors when piping to other tools. +Use `--format json` for machine-readable output, and set `NO_COLOR=1` to strip ANSI colors when piping to other tools. ### Create a discussion or PR diff --git a/docs/source/en/guides/community.md b/docs/source/en/guides/community.md index b38901536f..8091f8b043 100644 --- a/docs/source/en/guides/community.md +++ b/docs/source/en/guides/community.md @@ -152,8 +152,8 @@ hf discussions list bigscience/bloom # List discussions on a dataset repo hf discussions list nebius/SWE-rebench-V2 --type dataset -# Get info for a specific discussion with comments -hf discussions info bigscience/bloom 2 --comments +# Get info for a specific discussion, including its comment thread +hf discussions info bigscience/bloom 2 # Create a new discussion hf discussions create username/repo-name --title "Bug report" --body "Description here"