Skip to content

docs: Document runpodctl model commands and config environment variables#710

Open
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/runpodctl-model-commands
Open

docs: Document runpodctl model commands and config environment variables#710
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/runpodctl-model-commands

Conversation

@promptless

@promptless promptless Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Adds a runpodctl model reference page covering the model repository commands (add, list, remove), including the --wait-for-hash, --hash-timeout, and -v/--verbose flags on model add and the mutually exclusive --hash/--version version-removal flags on model remove introduced in runpodctl PR #302. Adds model to the CLI overview command groups table and registers the page in navigation. Also documents the RUNPOD_API_KEY, RUNPOD_GRAPHQL_URL, and RUNPOD_API_URL environment variables on the config reference page, which now reliably override config file values.

Trigger Events


Tip: Add more repositories in your Configuration to keep multiple doc sites in sync 📚

promptless Bot added 2 commits July 10, 2026 21:38
Document the previously-undocumented runpodctl model command family
(add, list, remove), including the new --wait-for-hash/-v flags on
model add and the --hash/--version version-removal flags on model
remove from runpodctl PR #302. Add model to the command groups table
and register the new reference page in navigation.
Add the --hash-timeout flag to the model add reference and document the
RUNPOD_API_KEY, RUNPOD_GRAPHQL_URL, and RUNPOD_API_URL environment
variables (which override config file values) introduced in
runpodctl PR #302.
Directory containing the model files to upload.
</ResponseField>

<ResponseField name="--wait-for-hash" type="bool" default="false">

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.

Documented the new --wait-for-hash and -v, --verbose flags on runpodctl model add from PR #302's cmd/model/addModelToRepo.go (flag registration and the --wait-for-hash requires --model-path constraint), plus the progress bar and total-model-size output added in the same file.

Source: https://github.com/runpod/runpodctl/pull/302/files

Model name.
</ResponseField>

<ResponseField name="--owner" type="string">

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.

Documented the new --hash and --version flags on runpodctl model remove from PR #302's cmd/model/removeModel.go, including the mutual-exclusivity check (only one of --hash or --version can be provided) and that a matching version is marked removed rather than deleting the whole model.

Source: https://github.com/runpod/runpodctl/pull/302/files

Wait for uploaded model files to finish hashing before the command returns. Requires `--model-path`. When hashing completes, `runpodctl` prints a message confirming the model is ready to deploy along with its model URL.
</ResponseField>

<ResponseField name="--hash-timeout" type="duration" default="30m0s">

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.

Documented the new --hash-timeout duration flag on model add; its default of 30m0s and the "0 disables the timeout" behavior come from the flag registration and modelHashWaitTimeout = 30 * time.Minute in cmd/model/addModelToRepo.go.

Source: https://github.com/runpod/runpodctl/pull/302/files


## Environment variables

You can also configure the CLI using environment variables. When set, these take precedence over the corresponding values in your config file.

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.

Documented the RUNPOD_API_KEY, RUNPOD_GRAPHQL_URL, and RUNPOD_API_URL environment variables and their precedence over config values, based on the new internal/configenv/configenv.go package: APIKeyEnvapiKey, GraphQLURLEnvapiUrl, RESTURLEnvrestApiUrl, with envOrConfig giving a non-empty env var priority over the config file.

Source: https://github.com/runpod/runpodctl/pull/302/files

@mintlify

mintlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Jul 14, 2026, 1:25 PM

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

@mintlify

mintlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
runpod-docs 🟡 Building Jul 14, 2026, 1:24 PM

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

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.

0 participants