Skip to content

docs: Document runpodctl model commands with add, list, and remove - #644

Open
promptless[bot] wants to merge 6 commits into
mainfrom
promptless/runpodctl-model-command
Open

docs: Document runpodctl model commands with add, list, and remove#644
promptless[bot] wants to merge 6 commits into
mainfrom
promptless/runpodctl-model-command

Conversation

@promptless

@promptless promptless Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Expands the runpodctl model command reference to include all subcommands: model add (with --owner flag for team accounts), model list (with --provider and --name filters), and model remove. Also documents the RUNPOD_GRAPHQL_URL environment variable for custom GraphQL endpoints.

Adds a brief Output format note documenting that the model add, model list, and model remove subcommands now return structured output — JSON by default, or YAML via runpodctl's global -o/--output flag — and clarifies that a model's version hash now surfaces as a field in that output rather than as a table column.

Trigger Events

Requested follow-up (this PR)
Applied @lavanya-gunreddi's approved request ("add the note") to document the structured JSON/YAML output. Behavior and flag names were verified against current runpodctl source: -o/--output is the CLI's pre-existing global output flag (default json, accepts json/yaml), so the note frames it as global rather than model-command-specific.


Tip: Use Slack message actions (⋯ menu → Update Docs) to capture doc updates without interrupting conversations 💬

promptless Bot added 4 commits May 11, 2026 22:20
Document the runpodctl model list command, including the new Version Hash
column that displays the model version hash needed for the --model-reference
flag when creating Serverless endpoints.
- Add model add subcommand with all flags including new --owner flag
- Add model remove subcommand documentation
- Document --provider and --name filter flags for model list
- Add RUNPOD_GRAPHQL_URL environment variable documentation
- Remove --all flag from list (removed in runpodctl PR #283)
- Remove --version-status flag from add (removed in runpodctl PR #283)
sidebarTitle: "model"
---

Manage models in the Model Repo, including adding, uploading, listing, and removing models.

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.

Added model command documentation based on PR #278, which introduces the Version Hash column to runpodctl model list. The version hash is needed for the --model-reference flag when creating Serverless endpoints.

Source: runpod/runpodctl#278

runpodctl model add --name "my-model" --model-path ./model-files
```

#### Add flags

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.

Added --owner flag documentation from PR #283 which introduced the flag in cmd/model/addModelToRepo.go:119. Also removed --version-status flag which was removed in the same PR.

Source: runpod/runpodctl#283


```bash
runpodctl model remove my-model
```

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.

Added RUNPOD_GRAPHQL_URL environment variable documentation from PR #283 which changed the env var from RUNPOD_API_URL to RUNPOD_GRAPHQL_URL in api/query.go:35.

Source: runpod/runpodctl#283

@mintlify

mintlify Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Jun 4, 2026, 10:10 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@jebenexer

Copy link
Copy Markdown

Recommend closing this PR in favor of #710.

Rationale:

#710 is the more current and accurate reference (traces directly to the actual source PRs, including the just-reviewed HF-mirroring flag). Recommend closing this one to avoid the merge collision rather than trying to reconcile the two.

@lavanya-gunreddi

Copy link
Copy Markdown
Contributor

@Promptless can you check if the triggered PRs are merged? Check if all the doc changes are covered.

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! I'm checking the merge status of the source runpodctl PRs (#278 and #283) and verifying that all their user-facing changes are captured in this doc update. I'll follow up with what's covered and anything still needed.

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Update: both source PRs (#278 and #283) are merged. One important detail surfaced — the later PR (#283) changed the model commands to emit JSON/YAML instead of tables and adjusted some flags, which affects how the version-hash output from #278 is presented. I'm now checking this PR's changes against that final behavior and will report what's covered and what needs updating.

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for checking in. Both upstream runpodctl PRs are now merged into main: #278 (adds the model version hash to model list output, merged May 12) and #283 (adds --owner, switches the endpoint override env var to RUNPOD_GRAPHQL_URL, and removes --version-status, merged June 3).

This PR accurately covers the current command surface: it documents --owner, correctly omits the removed --version-status and --all flags, and documents RUNPOD_GRAPHQL_URL with its default endpoint.

One change isn't yet reflected: #283 also switched model add, list, and remove from human-readable text/tables to structured output (JSON by default, -o yaml for YAML). Worth a brief note on the page, especially since the version hash now appears in JSON output rather than a table. Happy to extend this PR to add that note — let me know if you'd like us to.

@lavanya-gunreddi

Copy link
Copy Markdown
Contributor

@Promptless add the note

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks — on it. We'll extend this PR to add a brief note documenting that model add, list, and remove now emit structured output (JSON by default, -o yaml for YAML), including where the version hash surfaces. We'll follow up here when the change is pushed.

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Quick update: we've confirmed the current behavior against the runpodctl source. As of PR #283, model add, list, and remove emit structured output (JSON by default, -o yaml for YAML), and the version hash now surfaces in the JSON rather than a table column. Drafting the note now and will push it to this PR shortly.


## Output format

The `model add`, `model list`, and `model remove` subcommands return structured output, formatted as JSON by default. To get YAML instead, use runpodctl's global output flag, `-o` (or `--output`), which accepts `json` or `yaml`:

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.

runpodctl PR #283 converted the model add/list/remove subcommands from human-readable text/tables to the shared structured-output (output.Print) path, so they now return JSON by default.

Source: runpod/runpodctl#283

The `model add`, `model list`, and `model remove` subcommands return structured output, formatted as JSON by default. To get YAML instead, use runpodctl's global output flag, `-o` (or `--output`), which accepts `json` or `yaml`:

```bash
runpodctl model list -o yaml

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.

-o/--output is a pre-existing persistent (global) root flag on rootCmd, defaulting to json and accepting json or yaml, so -o yaml works with any subcommand including model list.

Source: https://github.com/runpod/runpodctl/blob/fc93344965cb407f737eb9b8aa003f8a45749b79/cmd/root.go#L119

--model-reference "abc123def456"
```

Run `runpodctl model list` to find the version hash for your model. The hash appears as a field in the command's structured output.

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.

PR #283 removed the table renderer that previously showed a Version Hash column (added by PR #278); the hash now surfaces as a field in model list's structured JSON output (nested per model under versions[].hash).

Source: runpod/runpodctl#283

@promptless

promptless Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Done — the note is added to this PR. There's now a brief "Output format" section on the runpodctl model command reference documenting that model add, list, and remove return structured output (JSON by default, or YAML via the CLI's global -o/--output flag), and clarifying that a model's version hash now appears as a field in that output rather than as a table column. We verified the current behavior and flag names against the runpodctl source before writing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants