truffle command reference โ
truffle discovers EC2 capacity โ finding instance types, comparing spot prices, checking quotas, and reporting capabilities. This is the exhaustive command and flag reference. For an overview and workflows see the truffle guide.
Generated reference
Each section below is generated from the truffle CLI itself and synced from its releases, so the commands and flags match the shipped binary. Deprecated commands are left out. For task-oriented walkthroughs see the guides.
Global flags โ
These apply to every truffle command.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--accessibility | bool | Enable accessibility mode (implies --no-emoji) | ||
--account | string | Expected AWS account ID (optional guard) | ||
--lang | string | Language for output (en, es, fr, de, ja, pt) | ||
--no-color | bool | Disable colorized output | ||
--no-emoji | bool | Disable emoji in output | ||
--output | -o | string | table | Output format (table, json, yaml, csv) |
--profile | string | AWS named profile (overrides SPORE_PROFILE/AWS_PROFILE and the shared config) | ||
--region | stringSlice | Alias for --regions | ||
--regions | -r | stringSlice | Filter by specific regions (comma-separated) | |
--verbose | -v | bool | Enable verbose output |
truffle app โ
List and inspect streamable research applications available in the spore.host catalog.
truffle apptruffle app list โ
List all streamable applications in the catalog
truffle app listtruffle available โ
Report what AWS can tell you about whether you can actually GET an instance type โ as opposed to whether it exists and what it costs, which 'truffle find' already answers.
For scarce accelerator types the price is often not the deciding number: a type can be listed, priced, and completely unobtainable. This gathers the four signals AWS exposes and reports each one separately, because they fail independently and call for different remedies:
Spot placement a 1-10 likelihood score per AZ (relative, not a guarantee) Offered AZs where the type is offered at all, with the region's AZ count Quota headroom vCPUs left under your On-Demand quota, and the quota to raise Capacity blocks purchasable Capacity Block for ML offerings (24h window)
None of these observes On-Demand capacity, and AWS has no API that does: an On-Demand launch can fail with InsufficientInstanceCapacity in every AZ while all four look fine. So a clean report means no checked signal blocks, not that an On-Demand launch will succeed. To wait for capacity, use 'lagotto watch'.
Each signal is best-effort: one being unavailable (commonly GetSpotPlacementScores, which SCPs often deny) is reported as a warning, not a failure โ an absent signal is never presented as a good one.
Checks one region per run: --region if given, else your configured region (the spore config region, then AWS_REGION / AWS_DEFAULT_REGION, then the AWS profile's region). Only when no region is configured anywhere does it fall back to us-east-1 (and says so). Every signal is regional; the on-demand price comes from the AWS Price List API, which is only served from us-east-1 and ap-south-1, so that one lookup always goes to us-east-1, but it still prices the region being checked.
Examples: truffle available p6-b200.48xlarge truffle available p6-b200.48xlarge --region us-east-1 truffle available p5.48xlarge --region us-west-2 --output json
truffle available <instance-type> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle az โ
Search for instance types with an availability zone-first perspective. This command prioritizes showing which specific AZs support each instance type, making it ideal for multi-AZ deployments and capacity planning.
Searches every enabled region by default, since the point is to compare regions; use --regions (or --az, which implies its zones' regions) to narrow.
Examples:
Find which AZs have m7i.large โ
truffle az m7i.large
Search in specific AZs only โ
truffle az m7i.large --az us-east-1a,us-east-1b
Find instances available in at least 3 AZs per region โ
truffle az "m8g.*" --min-az-count 3
Just the regions that offer m7i.large in at least 3 AZs โ
truffle az m7i.large --min-az-count 3 --regions-only
Show AZ availability summary โ
truffle az "c7i.xlarge" --output json
truffle az [instance-type-pattern] [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--all-regions | bool | Search every enabled region (already the default here; useful to be explicit in scripts). Cannot be combined with --regions | ||
--az | stringSlice | Filter by specific availability zones (e.g., us-east-1a,us-west-2b) | ||
--local-zones | bool | Restrict results to Local Zones and Wavelength Zones (edge locations) | ||
--min-az-count | int | Minimum number of AZs required per region | ||
--regions-only | bool | Show only the regions that meet the AZ requirement (--min-az-count): one row per region with its AZ count, AZs and matching types, instead of one per instance type | ||
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle capacity โ
Check ML capacity reservations across AWS regions.
Supports both Capacity Blocks (training workloads) and On-Demand Capacity Reservations (ODCRs) for GPU and ML instances.
Examples:
Check all reservations โ
truffle capacity
GPU instances only โ
truffle capacity --gpu-only
Capacity Blocks for ML โ
truffle capacity --blocks
Available capacity only โ
truffle capacity --available-only
truffle capacity [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--active-only | bool | true | Only show active reservations (default: true) | |
--all-regions | bool | Search every enabled region (already the default here; useful to be explicit in scripts). Cannot be combined with --regions | ||
--available-only | bool | Only show reservations with available capacity | ||
--blocks | bool | Show Capacity Blocks for ML (training workloads) | ||
--gpu-only | bool | Only show GPU/ML instance reservations | ||
--instance-types | stringSlice | Filter by instance types (comma-separated) | ||
--min-capacity | int | Minimum available capacity | ||
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle capacity-blocks โ
Discover purchasable EC2 Capacity Block for ML offerings (read-only).
This queries DescribeCapacityBlockOfferings โ "what can I reserve?" โ and shows each offering's id, instance type/count, AZ, reservation window (in your local timezone), duration, and up-front price. The offering id is what 'spawn capacity-block purchase' reserves. Offerings are listed cheapest-first by default (--sort start to order by start time instead).
Durations are day-granular: use --days (e.g. --days 1), or --duration-hours, which is rounded up to a valid Capacity Block duration (1-day steps to 14 days, then 7-day steps to 182). By default the search covers now โ the soonest a block of that duration could end; use --start-date / --start-after / --end-by to widen or shift the window (blocks can start up to 8 weeks out).
Searches every enabled region by default, since offerings vary by region; use --regions to narrow.
For Capacity Blocks you ALREADY own, use 'truffle capacity --blocks' instead.
Examples: truffle capacity-blocks --instance-type p5.48xlarge --days 1 truffle capacity-blocks --instance-type p5.48xlarge --start-date 2026-07-01 --days 2 truffle capacity-blocks --instance-type p5.48xlarge --duration-hours 48
--region us-east-1 --sort start --output json
truffle capacity-blocks [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--all-regions | bool | Search every enabled region (already the default here; useful to be explicit in scripts). Cannot be combined with --regions | ||
--count | int | 1 | Number of instances in the block | |
--days | int | Capacity Block duration in days (natural unit for CB-for-ML; e.g. --days 1). Overrides --duration-hours | ||
--duration-hours | int | Capacity Block duration in hours (e.g. 24); use --days for whole days | ||
--end-by | string | Latest block END time (RFC3339). Default: start + duration + 1d cushion | ||
--instance-type | string | Instance type to find offerings for (required, e.g. p5.48xlarge) | ||
--sort | string | price | Sort offerings by: price (cheapest first) or start (soonest first) | |
--start-after | string | Earliest block START time (RFC3339, e.g. 2026-07-01T00:00:00Z). Default: now | ||
--start-date | string | Search for blocks starting on this calendar day (YYYY-MM-DD), in UTC | ||
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle find โ
Find EC2 instance types using natural language, glob patterns, or regex.
Searches your configured region by default (spore config region, AWS_REGION / AWS_DEFAULT_REGION, or the profile's region). Use --regions to choose regions, or --all-regions to search every enabled region. With no region configured, find searches every enabled region.
Auto-detects query type:
- Patterns: m7i*, c[6-8]i.large, g5.* โ pattern matching
- Natural language: "graviton 8 cores 32gb" โ spec-based search
- Multiple explicit types as separate args compare side-by-side in one table: truffle find g5.2xlarge g5.4xlarge g5.12xlarge
Understands:
- CPU vendors: intel, amd, graviton, nvidia
- Processors: emerald rapids, sapphire rapids, ice lake, turin, genoa, milan, rome, naples (and zen 1 to zen 5)
- GPUs: h200, h100, a100, b200, b300, l40s, l4, a10g, t4, rtx, inferentia, trainium
- Any accelerator: gpu, gpus, accelerator, accelerators (every GPU, Inferentia, Trainium, FPGA and media-accelerator family; "amd gpu" is the GPU hosts with an AMD CPU, e.g. g5 and g6, and "graviton gpu" is g5g)
- Accelerator use case: training (H100, H200, A100, V100, B200, B300, Trainium, Trainium2) or inference (A10G, T4, L4, L40S, Inferentia, Inferentia2), as AWS positions each chip; name a GPU to get one outside its usual use case (hyphenated/suffixed spec strings also work, e.g. "RTX-PRO-6000", "A100-80GB", "H100!", "B200+" โ Modal's documented GPU naming convention)
- Instruction sets: avx2, avx-512, sve, sve2
- NVIDIA MIG: mig (matches only GPUs supporting Multi-Instance GPU partitioning โ A100, H100, H200, B200, RTX PRO 6000/4500; NOT L4/L40S/T4/A10G/V100/B300)
- NVIDIA MPS: mps (matches ANY NVIDIA GPU โ MPS is a CUDA runtime feature, not a hardware capability tied to instance type, unlike MIG above)
- Specs: 8 cores, 8 physical cores, 32gb, 4 gpus (minimums: results are listed closest fit first, then cheapest โ the request's exact size leads; add --exact to show only exact matches)
- Memory: a bare size is host memory ("amd 16 cores 64gb"), except in a GPU or accelerator query, where it is the memory of each GPU. Host memory is in GiB ("64gb" and "64gib" both mean 64 GiB), as the Memory (GiB) column shows it. Per-GPU memory is the size the GPU is sold as, in its own unit: GiB for most (H100 80 GiB, B200 179 GiB), GB for some (A10G and L4 24 GB, L40S 48 GB), so "gpu 24gb" is A10G, L4 and larger, not the 16 GiB T4. Say which you mean with "64gb ram" / "64gb memory" (host) or "24gb vram" / "24gb gpu memory" (per GPU); "a10g 24gb 64gb ram" gives both. find prints a note when it reads a bare size as per-GPU memory. The VRAM column shows the same size with its unit, so an A10G shows 24 GB (24/gpu) and an H100 host 640 GiB (80/gpu); when Inferentia or Trainium rows are listed the columns read Accel / Accel mem, e.g. inf2.xlarge's 1 Inferentia2 is 32 GiB (32/chip) and trn2.48xlarge's 16 Trainium2 chips 1536 GiB (96/chip).
- Sizes: tiny, small, medium, large, huge
- Families and exact sizes: g5, m7i-flex, xlarge, 2xlarge, metal-24xl ("g5 xlarge" is g5.xlarge; "g5" alone is every g5 size)
- Architecture: x86_64, arm64
- Network: efa, 10gbps, 25gbps, 50gbps, 100gbps, 200gbps, 400gbps
- Sort hints: cheap/cheapest, fast/fastest, newest/latest
- A query with no recognised word is an error that names the unknown words, rather than a search of every instance type
- Combining constraints: multiple constraint types (e.g. a GPU and "efa") combine with AND by default โ "h100 efa" means H100 instances that also have EFA, not "either." Add the literal word "or" anywhere in the query to switch the whole query to OR (union) instead; "and" is also accepted explicitly. Within one constraint type, multiple values still always mean OR โ "a100 h100" always means A100-or-H100, since no instance is both.
Examples: truffle find g5.2xlarge g5.4xlarge g5.12xlarge (multi-type comparison) truffle find "m7i*" (glob pattern) truffle find "m7i*" --all-regions (every enabled region) truffle find "c[6-8]i.large" (regex pattern) truffle find graviton (vendor search) truffle find "turin 32 cores 64gb" --exact (exact spec match) truffle find "8 physical cores 32gb" (physical core count) truffle find "cheap graviton 8 cores" (sorted by price) truffle find nvidia (all NVIDIA GPU instances) truffle find "gpu 24gb" (GPUs with at least 24 GB/GiB each) truffle find "a10g 64gb ram" (A10G hosts with โฅ64 GiB RAM) truffle find "h100 efa" (GPU AND network, by default) truffle find "h100 or efa" (GPU OR network, explicit) truffle find avx-512 (instruction-set search) truffle find "sve2 graviton" (instruction set + vendor) truffle find mig (NVIDIA MIG-capable GPUs only) truffle find mps (any NVIDIA GPU โ MPS runs on all of them)
truffle find <query> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--all-regions | bool | Search every enabled region (default: only your configured region, e.g. AWS_REGION or the profile's region) | ||
--app | string | Application name from catalog (e.g. paraview, igv) | ||
--exact | bool | Match exact vCPU and memory values instead of minimum | ||
--limit | int | List only the first N instance types, in result order, with every region row of each (0 = all). The table keeps its border and footer, unlike | head | ||
--local-zones | bool | Restrict results to Local Zones and Wavelength Zones (edge locations); mutually exclusive with --skip-azs | ||
--pick-first | bool | Output only the top result's instance type (useful for piping to spawn) | ||
--price-unit | string | hour | Price display unit for --show-price: hour, minute, or second | |
--service | string | ec2 | Instance namespace to search: ec2 or sagemaker (ml.* types) | |
--show-gpu-ratios | bool | Add vCPU/GPU and RAM/GPU columns for GPU instance types (decisive for CPU/IO-bound ML workloads) | ||
--show-mem-per-cpu | bool | Show memory per physical core alongside total memory | ||
--show-price | bool | Show on-demand pricing (live AWS Price List; a static fallback price is marked, with its collection date and why) | ||
--show-query | bool | Show parsed query details | ||
--show-quota | bool | Show the per-type training-job quota (SageMaker only) | ||
--show-real-cores | bool | Show physical CPU core count alongside vCPUs (format: vCPU/CPU, e.g. 96/48) | ||
--skip-azs | bool | Skip availability zone lookup (faster) | ||
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle list โ
List available EC2 instance types, families, or sizes.
Queries one region: the first --region / --regions given, else your configured region (the spore config region, then AWS_REGION / AWS_DEFAULT_REGION, then the AWS profile's region). Only when no region is configured anywhere does it fall back to us-east-1 (and says so). Most types are offered everywhere, but some are region-limited, so the list is what you can launch in that region.
Examples: truffle list truffle list --family truffle list --sizes truffle list --region us-west-2
truffle list [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--family | bool | List instance families (e.g., m5, c5, r5) | ||
--sizes | bool | List available sizes (e.g., large, xlarge, 2xlarge) |
truffle quotas โ
Display current quotas, usage, and available capacity for EC2 and SageMaker instances.
Requires AWS credentials to be configured.
Checks your configured region by default: the spore config region, then AWS_REGION / AWS_DEFAULT_REGION, then the AWS profile's region. Use --region / --regions to choose. Only when no region is configured anywhere does it fall back to us-east-1 (and says so). Service Quotas is a regional API, so nothing here needs us-east-1.
Examples:
Show EC2 quotas for your configured region โ
truffle quotas
Show quotas for specific regions โ
truffle quotas --regions us-east-1,us-west-2
Show only GPU quotas โ
truffle quotas --family P
Show SageMaker ml.* instance quotas โ
truffle quotas --service sagemaker --regions us-west-2
Show SageMaker g5 quotas only โ
truffle quotas --service sagemaker --family g5 --regions us-west-2
Generate quota increase requests โ
truffle quotas --service sagemaker --family g5 --request
truffle quotas [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--family | string | Filter by instance family (EC2: Standard/G/P/Inf/Trn; SageMaker: g5/p4d/etc.) | ||
--request | bool | Generate quota increase request commands | ||
--service | string | ec2 | Service to query: ec2 (default) or sagemaker |
truffle spot โ
Search for Spot instance pricing and availability across AWS regions.
Shows current Spot prices, savings vs On-Demand, and price history.
Examples:
Spot prices for m7i.large โ
truffle spot m7i.large
Filter by max price โ
truffle spot "m7i.*" --max-price 0.10
Sort by price โ
truffle spot "c7.*" --sort-by-price
truffle spot <instance-type-pattern>... [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--active-only | bool | Only show AZs with active Spot capacity | ||
--all-regions | bool | Search every enabled region (already the default here; useful to be explicit in scripts). Cannot be combined with --regions | ||
--limit | int | List only the first N rows, in result order (0 = all). The table keeps its border and footer, unlike | head | ||
--local-zones | bool | Include local zones in results (excluded by default) | ||
--lookback-hours | int | 1 | Hours to look back for price history (1-720) | |
--max-price | float64 | Maximum Spot price per hour (USD) | ||
--pick-first | bool | Output only the top result's instance type (useful for piping to spawn) | ||
--sort-by-price | bool | Sort by price (cheapest first) | ||
--timeout | duration | 5m0s | Timeout for AWS API calls |
truffle version โ
Display version, build date, and git commit information for truffle.
truffle version