feat(search): add gpu-search command to find GPU instance types#280
Merged
feat(search): add gpu-search command to find GPU instance types#280
Conversation
Add `brev search` command (aliases: gpu-search, gpu, gpus) to search and filter available GPU instance types across cloud providers. Features: - Filter by GPU name, provider, VRAM, compute capability, disk, boot time - Sort by price, vram, boot-time, etc. - Show instance features (stoppable, rebootable, flex-ports) - JSON output support for scripting - Pipeable output for chaining with other commands Examples: brev search --gpu-name A100 --sort price brev search --min-vram 40 --max-boot-time 5 brev search --json | jq '.[] | select(.price < 2)'
7 tasks
Member
Author
Manual QA Results ✅Build & Static Analysis:
Test Plan Verification:
Notes:
|
patelspratik
reviewed
Feb 3, 2026
patelspratik
reviewed
Feb 4, 2026
patelspratik
reviewed
Feb 4, 2026
patelspratik
reviewed
Feb 4, 2026
patelspratik
reviewed
Feb 4, 2026
patelspratik
reviewed
Feb 4, 2026
patelspratik
reviewed
Feb 4, 2026
- Add validation for --sort flag with clear error message for invalid options - Extract common formatInstanceFields helper to reduce code duplication - Move regex compilation to package level (compiled once, not per call) - Replace magic number 730 with hoursInMonth constant - Move public API URL to config.go as GetBrevPublicAPIURL() - Use NewRestyClient instead of resty.New() for consistency Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix gofumpt formatting (var block alignment, struct field alignment) - Reduce cyclomatic complexity in RunGPUSearch by extracting validateSortOption, displayEmptyResults, setTargetDisks, and displayResults helpers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
brev searchcommand (aliases:gpu-search,gpu,gpus) to search and filter available GPU instance types across cloud providers.Features
Examples
Test plan
brev searchshows available GPUs