> This page is for version v1.0.0.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo/datadesigner/latest/llms.txt
> - v1.0.1: https://docs.nvidia.com/nemo/datadesigner/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/nemo/datadesigner/v1.0.0/llms.txt
> - v0.10.0: https://docs.nvidia.com/nemo/datadesigner/v0.10.0/llms.txt
> - v0.9.7: https://docs.nvidia.com/nemo/datadesigner/v0.9.7/llms.txt
> - v0.9.6: https://docs.nvidia.com/nemo/datadesigner/v0.9.6/llms.txt
> - v0.9.5: https://docs.nvidia.com/nemo/datadesigner/v0.9.5/llms.txt
> - v0.9.4: https://docs.nvidia.com/nemo/datadesigner/v0.9.4/llms.txt
> - v0.9.3: https://docs.nvidia.com/nemo/datadesigner/v0.9.3/llms.txt
> - v0.9.2: https://docs.nvidia.com/nemo/datadesigner/v0.9.2/llms.txt
> - v0.9.1: https://docs.nvidia.com/nemo/datadesigner/v0.9.1/llms.txt
> - v0.9.0: https://docs.nvidia.com/nemo/datadesigner/v0.9.0/llms.txt
> - v0.8.0: https://docs.nvidia.com/nemo/datadesigner/v0.8.0/llms.txt
> - v0.7.0: https://docs.nvidia.com/nemo/datadesigner/v0.7.0/llms.txt
> - v0.6.1: https://docs.nvidia.com/nemo/datadesigner/v0.6.1/llms.txt
> - v0.6.0: https://docs.nvidia.com/nemo/datadesigner/v0.6.0/llms.txt
> - v0.5.9: https://docs.nvidia.com/nemo/datadesigner/v0.5.9/llms.txt
> - v0.5.8: https://docs.nvidia.com/nemo/datadesigner/v0.5.8/llms.txt
> - Older versions: https://docs.nvidia.com/nemo/datadesigner/older-versions/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/datadesigner/llms.txt.

# Slurm CLI reference

Install the extension with `python -m pip install "data-designer[slurm]"`, verify it with `python -m pip show data-designer-slurm`, then use `data-designer slurm COMMAND --help` for the authoritative option list.

All commands accept `--profile-file PATH` and `--cluster NAME` where cluster selection is required.

| Command                        | Purpose                                                                                                                                      |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `profile init`                 | Create a restrictive starter profile catalog without overwriting.                                                                            |
| `profile validate`             | Validate catalog selection, shared workspace access, and scheduler facts.                                                                    |
| `image add`                    | Resolve an official versioned vLLM tag, or import/inspect a pinned OCI or SQSH image through a CPU Slurm job, then publish a verified alias. |
| `image ls`                     | List aliases in the selected profile workspace.                                                                                              |
| `image info NAME`              | Show one registered alias and immutable image facts.                                                                                         |
| `image rm NAME`                | Remove an alias and retain its SQSH artifact. Use `--delete-artifact` to also remove an unshared, package-owned OCI artifact.                |
| `execute RUN_FILE`             | Resolve and submit a run. Add `--dry-run` to render without submission.                                                                      |
| `status RUN_ID`                | Reconcile scheduler observations with durable managed state.                                                                                 |
| `cancel RUN_ID`                | Cancel active jobs owned by a managed run.                                                                                                   |
| `retry RUN_OR_JOB_ID`          | Preview or submit a sparse retry. Repeat `--task-id` to select shards.                                                                       |
| `merge RUN_ID`                 | Submit a zero-GPU winner collection job for a managed run.                                                                                   |
| `benchmark run BENCHMARK_FILE` | Expand benchmark cases into ordinary child runs and submit them.                                                                             |
| `benchmark analyze BENCHMARK`  | Write a report from persisted child state.                                                                                                   |

## Common options

| Option                               | Commands                           | Meaning                                                                                                                |
| ------------------------------------ | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `--output FORMAT`                    | `slurm` group, before a subcommand | Use `human` (default) or `json` for automation.                                                                        |
| `--follow-logs` / `--no-follow-logs` | `image add`                        | Follow bounded image-job logs by default in an interactive terminal; override either way.                              |
| `--profile-file PATH`                | Most commands                      | Use a catalog other than the default or environment-selected file.                                                     |
| `--cluster NAME`                     | Most commands                      | Select one catalog entry explicitly.                                                                                   |
| `--dry-run`                          | `execute`, `retry`                 | Perform resolution and render a batch script without submission.                                                       |
| `--input-path PATH`                  | `merge`                            | Select a managed run directory instead of passing `RUN_ID`.                                                            |
| `--output-path PATH`                 | `merge`                            | Select an authorized compute-visible collection directory instead of `<workspace_root>/runs/<run-id>/merge-output`.    |
| `--num-partitions N`                 | `merge`                            | Write N Parquet files; defaults to 1 for a new collection.                                                             |
| `--force`                            | `retry`, `benchmark run`           | Skip retry confirmation or resume a safely recoverable benchmark submission. It does not overwrite immutable evidence. |
| `--refresh-state`                    | `benchmark analyze`                | Reconcile each child with the scheduler before analysis.                                                               |
| `--fail-if-incomplete`               | `benchmark analyze`                | Persist the report, then return a conflict if any case is incomplete.                                                  |

## Output and errors

Success is readable text on stdout by default; failure is readable text on stderr. For automation, use `data-designer slurm --output json COMMAND` or set `DATA_DESIGNER_SLURM_OUTPUT=json`. JSON mode keeps the existing canonical success value on stdout and error object on stderr:

```json
{"error":{"code":"invalid_request","message":"...","operation":"execute_run"}}
```

Exit codes are `1` for internal errors, `2` for invalid requests, `3` for missing managed resources, `4` for conflicts, and `5` for unavailable external systems. Error messages are bounded and sanitized; inspect durable logs for operational detail.