Skip to content

fix: show GPU, disk, and price for create --type --dry-run - #529

Open
pcbeingused333 wants to merge 1 commit into
brevdev:mainfrom
pcbeingused333:fix/create-dry-run-type-details
Open

pcbeingused333 wants to merge 1 commit into
brevdev:mainfrom
pcbeingused333:fix/create-dry-run-type-details

Conversation

@pcbeingused333

Copy link
Copy Markdown

Fixes #431

brev create <name> --type X --dry-run printed only the instance type string. That branch never looked the type up, so GPU, disk, price, provider, and org were missing and an agent could not confirm cost before creating.

Explicit types are now resolved with GetInstanceTypes and ProcessInstances, in the order given, and rendered with the same table as brev search (provider, GPU, count, VRAM, disk, hourly price). The instance name and active organization are printed above the table. A disk size already attached to the type is the disk shown. Types that are not in the GPU catalog still print as a name, and nothing is provisioned. CPU-only types stay on that name fallback because the lookup uses the GPU catalog.

Tests use the existing mock store. Before the change, --type g5.xlarge --dry-run output was only g5.xlarge. After it, the output includes the name, org, GPU, disk, and price, and an unknown type still does not create a workspace.

This change was prepared with AI assistance (Claude Code).

Fixes brevdev#431

--type --dry-run printed only the type name. Resolve the type in the
GPU catalog and print the search table, plus the instance name and org.
@pcbeingused333
pcbeingused333 requested a review from a team as a code owner November 7, 2026 20:24
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.

brev create --dry-run prints only the instance type name

1 participant