Skip to content

Commit 685e0cd

Browse files
[Docs] Update SKILL.md (#3547)
* Corrected a typo in the configuration type help command. * Enhanced descriptions for `dstack offer` command, including details on max offers and grouping options.
1 parent 409da83 commit 685e0cd

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

skills/dstack/SKILL.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ description: |
5858
- Never guess or invent flags. Example verification commands:
5959
```bash
6060
dstack --help # List all commands
61-
dstack apply --help <configuration tpye> # Flags for apply per configuration type (dev-environment, task, service, fleet, etc)
61+
dstack apply --help <configuration type> # Flags for apply per configuration type (dev-environment, task, service, fleet, etc)
6262
dstack fleet --help # Fleet subcommands
6363
dstack ps --help # Flags for ps
6464
```
@@ -412,12 +412,11 @@ dstack stop my-run-name -y
412412
dstack stop my-run-name --abort
413413
```
414414

415-
### Check available resources
415+
### List offers
416416

417-
```bash
418-
# List all available offers across backends
419-
dstack offer --json
417+
Offers represent available instance configurations available for provisioning across backends. `dstack offer` lists offers regardless of configured fleets.
420418

419+
```bash
421420
# Filter by specific backend
422421
dstack offer --backend aws
423422
@@ -429,19 +428,24 @@ dstack offer --gpu 24GB..80GB
429428
430429
# Combine filters
431430
dstack offer --backend aws --gpu A100:80GB
431+
432+
# JSON output (for troubleshooting/scripting)
433+
dstack offer --json
432434
```
433435

434-
**Note:** `dstack offer` lists offers across backends regardless of configured fleets.
436+
**Max offers:** By default, `dstack offer` returns first N offers (output also includes the total number). Use `--max-offers N` to increase the limit.
437+
**Grouping:** Prefer `--group-by gpu` (other supported values: `gpu,backend`, `gpu,backend,region`) for aggregated output across all offers, not `--max-offers`.
435438

436439
## Troubleshooting
437440

438441
When diagnosing issues with dstack workloads or infrastructure:
439442

440443
1. **Use JSON output for detailed inspection:**
441444
```bash
442-
dstack fleet get my-fleet --json | jq .
443-
dstack run get my-run --json | jq .
444-
dstack ps -n 10 --json | jq .
445+
dstack fleet get my-fleet --json
446+
dstack run get my-run --json
447+
dstack ps -n 10 --json
448+
dstack offer --json
445449
```
446450

447451
2. **Check verbose run status:**
@@ -459,11 +463,6 @@ When diagnosing issues with dstack workloads or infrastructure:
459463
dstack attach my-run --logs
460464
```
461465

462-
5. **Verify resource availability:**
463-
```bash
464-
dstack offer --backend aws --gpu A100 --spot-auto --json
465-
```
466-
467466
Common issues:
468467
- **No offers:** Check `dstack offer` and ensure that at least one fleet matches requirements
469468
- **No fleet:** Ensure at least one fleet is created

0 commit comments

Comments
 (0)