Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions runpodctl/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ Runpod CLI organizes commands into groups based on the resource type:
| `runpodctl pod` | | Manage Pods (create, list, start, stop, delete) |
| `runpodctl serverless` | `sls` | Manage Serverless endpoints |
| `runpodctl template` | `tpl` | List, search, and manage templates |
| `runpodctl model` | | Manage models in the model repository (add, list, remove) |
| `runpodctl hub` | | Browse and deploy from the Runpod Hub |
| `runpodctl network-volume` | `nv` | Manage network volumes |
| `runpodctl registry` | `reg` | Manage container registry authentications |
Expand Down
18 changes: 14 additions & 4 deletions runpodctl/reference/runpodctl-model.mdx
Comment thread
promptless[bot] marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ runpodctl model add --name my-model --model-path ./my-model-dir \

</Warning>

If your account has a model repository storage quota, a local upload checks the total size of the files against your remaining quota before it creates anything. An upload that would exceed the quota fails right away, and the error shows how much space is available. Free up space or contact support to request a higher quota. Mirroring with `--huggingface-model` doesn't run this check.

#### Add flags

<ResponseField name="--name" type="string" required>
Expand Down Expand Up @@ -90,7 +92,7 @@ Maximum time to wait with `--wait-for-hash` (default `30m`). `0` disables the ti
</ResponseField>

<ResponseField name="--delete-my-model-files-after-upload" type="bool">
Delete the uploaded `--model-path` files once the model version is confirmed deployable. Requires `--wait-for-hash`.
Delete the uploaded `--model-path` files once the model version is confirmed deployable. Requires `--wait-for-hash`. Only the files this run uploaded are deleted. If a file can't be deleted, the command exits with an error that names it.
</ResponseField>

<ResponseField name="--verbose, -v" type="bool">
Expand Down Expand Up @@ -143,7 +145,15 @@ runpodctl model remove --owner <owner> --name my-model

You can use `rm` or `delete` as a shorthand for `remove`.

A model that a Serverless endpoint still references can't be removed. The command fails and lists the endpoints that use it. Detach the model from each endpoint first, then remove it:
To remove a single version instead of the whole model, pass `--version` or `--hash`:

```bash
runpodctl model remove --owner <owner> --name my-model --version <version-uuid>
```

A model or version that a Serverless endpoint still references can't be removed, and there is no flag to force it. Removing the whole model fails if an endpoint references any of its versions. Removing one version fails only if an endpoint references that version. The command lists the endpoints that block the removal and deletes nothing. If `runpodctl` can't complete this check, for example because the API is unreachable, it also refuses the removal.

Detach the model from each endpoint first, or point the endpoint at a different model with `--model-reference`, then remove it:

```bash
runpodctl serverless update <endpoint-id> --clear-models
Expand All @@ -161,11 +171,11 @@ Owner of the model.
</ResponseField>

<ResponseField name="--version" type="string">
UUID of a specific model version to remove.
UUID of a specific model version to remove. Can't be combined with `--hash`.
</ResponseField>

<ResponseField name="--hash" type="string">
Hash of a specific model version to remove.
Hash of a specific model version to remove. Can't be combined with `--version`.
</ResponseField>

## Related commands
Expand Down
4 changes: 2 additions & 2 deletions runpodctl/reference/runpodctl-serverless.mdx

@promptless promptless Bot Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Citation

Documented the new --model-reference (repeatable string, replaces existing model references) and --clear-models (bool, mutually exclusive with --model-reference) flags on runpodctl serverless update (PR #334, STO-360). Source: update.go#L43-45 flag vars, L55-56 registration, L62-64 mutual-exclusivity check (--clear-models and --model-reference are mutually exclusive); replace semantics confirmed by UpdateEndpointModels in internal/api/endpoints.go#L253-337 (full-replace saveEndpoint call with the new modelRefs).

Source: update.go:43–64 · 069ac66

Comment thread
promptless[bot] marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ Trigger point for the autoscaler. For `delay`, this is the queue wait time in se
</ResponseField>

<ResponseField name="--model-reference" type="string">
Model reference to cache on the endpoint. Use multiple `--model-reference` flags to attach multiple models. The references you pass replace the endpoint's existing model references.
Model reference to cache on the endpoint. Use multiple `--model-reference` flags to attach multiple models. The references you pass replace the endpoint's existing model references, and the output lists the saved references in `modelReferences`. Can't be combined with `--clear-models`.
</ResponseField>

<ResponseField name="--clear-models" type="bool">
Remove all model references from the endpoint.
Remove all model references from the endpoint. The output then shows an empty `modelReferences` array. Can't be combined with `--model-reference`.
</ResponseField>

`--idle-timeout` doesn't apply to queue-based endpoints that scale by request count.
Expand Down
Loading