Use when working with SkyPilot CLI commands, sky launch, sky exec, sky jobs, managed jobs, sky serve, sky status, sky yaml configuration, cloud GPU provisioning, sky check credentials, or the SkyPilot Python SDK - the authoritative SkyPilot reference for all cloud ML infrastructure operations
| Command | Purpose | Example |
|---|---|---|
sky launch [YAML] -c NAME | Provision cluster and run task | sky launch train.yaml -c mycluster |
sky exec NAME [YAML] | Run task on existing cluster (skip setup) | sky exec mycluster eval.yaml |
sky stop NAME | Stop cluster (keep disk, stop billing compute) | sky stop mycluster |
sky start NAME | Restart stopped cluster | sky start mycluster |
sky down NAME | Tear down cluster completely | sky down mycluster |
sky status [-r] | List clusters ( for all regions) |
-rsky status |
sky jobs launch YAML | Submit managed job (auto-recovery) | sky jobs launch train.yaml |
sky jobs queue | List managed jobs | sky jobs queue |
sky jobs logs JOB_ID | Stream managed job logs | sky jobs logs 42 |
sky jobs cancel JOB_ID | Cancel managed job | sky jobs cancel 42 |
sky serve up YAML | Deploy SkyServe endpoint | sky serve up serve.yaml |
sky serve down NAME | Tear down service | sky serve down myservice |
sky serve status | List services and replicas | sky serve status |
sky serve update NAME YAML | Rolling update a service | sky serve update myservice serve-v2.yaml |
sky gpus list [GPU:N] | Show GPU pricing across clouds | sky gpus list A100:8 |
sky cost-report | Show spending on SkyPilot-managed clusters | sky cost-report |
sky check | Verify cloud credentials | sky check |
sky storage ls | List SkyPilot-created cloud storage | sky storage ls |
sky storage delete NAME | Delete SkyPilot-created storage | sky storage delete my-bucket |
sky launch Flags| Flag | Purpose | Default |
|---|---|---|
-c NAME | Cluster name (reuse existing) | auto-generated |
--gpus GPU[:N] | Request GPU type and count | from YAML |
--use-spot | Request spot/preemptible instances | false |
--retry-until-up | Retry on capacity errors | false |
--idle-minutes-to-autostop N | Auto-stop after N idle minutes | disabled |
--down | Tear down after task completes | false |
--env KEY=VAL | Set environment variable | none |
--ports N | Expose port to public internet | none |
--async | Return immediately, do not stream logs | false |
--dryrun | Show what would happen without executing | false |
--num-nodes N | Multi-node cluster | 1 |
--disk-size N | OS disk size in GB | 256 |
--disk-tier {low,medium,high,best,ultra} | Disk performance tier | medium |
-y | Skip confirmation prompt | false |
Minimal training YAML: