Skip to content

docs(cli): document host_id as a search offers filter field - #494

Open
guthrie-vast wants to merge 1 commit into
masterfrom
docs/search-offers-host-id-field
Open

docs(cli): document host_id as a search offers filter field#494
guthrie-vast wants to merge 1 commit into
masterfrom
docs/search-offers-host-id-field

Conversation

@guthrie-vast

Copy link
Copy Markdown
Contributor

What

Adds host_id to the Available fields list in vastai search offers --help, and adds an example showing how to exclude specific hosts with notin.

Why

host_id has always been filterable in offer search — including host_id notin [...] for excluding hosts — but it was absent from the help's field list (while machine_id was listed), so users had no way to discover it. Verified against the live API: notin excludes exactly the listed hosts for both authenticated and anonymous queries.

No behavior change — help text only.

🤖 Generated with Claude Code

host_id has always been filterable in offer search (including notin for
excluding specific hosts), but it was missing from the 'Available fields'
list in the search offers help text, so users could not discover it.
Add the field entry and an exclusion example.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vastzuby

Copy link
Copy Markdown
Contributor

vast.py is deprecated btw

@vastzuby vastzuby left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to also update vastai/cli/commands/offers.py with same change since vast.py is deprecated.

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