From 82d65c03817b1704cb4299f5949f50e09cbab998 Mon Sep 17 00:00:00 2001 From: "promptless[bot]" Date: Thu, 20 Aug 2026 23:48:04 +0000 Subject: [PATCH 1/2] Document registry create --password-stdin and interactive prompt Reflect runpodctl PR #329: --password-stdin, interactive no-echo prompt, --password now optional, mutual exclusivity, and multi-line _json_key support. --- runpodctl/reference/runpodctl-registry.mdx | 40 ++++++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/runpodctl/reference/runpodctl-registry.mdx b/runpodctl/reference/runpodctl-registry.mdx index 44145537d..d1bd84339 100644 --- a/runpodctl/reference/runpodctl-registry.mdx +++ b/runpodctl/reference/runpodctl-registry.mdx @@ -39,12 +39,42 @@ runpodctl registry get ### Create a registry authentication -Create credentials for a private container registry: +Create credentials for a private container registry. Supply the password with the `--password` flag, by piping or redirecting it into `--password-stdin`, or by omitting both flags to enter it at an interactive prompt. + +Pass the password directly with `--password`: ```bash runpodctl registry create --name "docker-hub" --username "myuser" --password "mypassword" ``` +Omit the password flag to have the command prompt for the password without echoing it: + +```bash +runpodctl registry create --name "docker-hub" --username "myuser" +``` + +Pipe a token held in an environment variable into `--password-stdin`: + +```bash +printenv REGISTRY_TOKEN | runpodctl registry create --name "docker-hub" --username "myuser" --password-stdin +``` + +Redirect a token from a file into `--password-stdin`: + +```bash +runpodctl registry create --name "docker-hub" --username "myuser" --password-stdin < token.txt +``` + +For Google Artifact Registry or gcr.io, set `--username` to the literal `_json_key` and feed the multi-line service-account JSON key file through `--password-stdin`. The command supports multi-line passwords and strips only a single trailing newline added by the pipe or redirection. + +```bash +runpodctl registry create --name "gcr" --username "_json_key" --password-stdin < service-account.json +``` + + +Prefer `--password-stdin` or the interactive prompt over `--password`. A value passed to `--password` is visible in the process table and your shell history. + + #### Create flags @@ -55,8 +85,12 @@ Name for this registry authentication. Registry username. - -Registry password or access token. + +Registry password or access token. Cannot be used with `--password-stdin`. If neither `--password` nor `--password-stdin` is given, the command prompts for the password when run in an interactive terminal, or exits with an error otherwise. + + + +Read the registry password from standard input (pipe, heredoc, or file redirection). Supports multi-line values. Cannot be used with `--password`. ### Delete a registry authentication From fb40d7396048819bab89c89e20430785475c3eae Mon Sep 17 00:00:00 2001 From: "promptless[bot]" Date: Mon, 24 Aug 2026 20:53:47 +0000 Subject: [PATCH 2/2] docs: bullet the three password-supply methods per review feedback --- runpodctl/reference/runpodctl-registry.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runpodctl/reference/runpodctl-registry.mdx b/runpodctl/reference/runpodctl-registry.mdx index d1bd84339..89ee35859 100644 --- a/runpodctl/reference/runpodctl-registry.mdx +++ b/runpodctl/reference/runpodctl-registry.mdx @@ -39,7 +39,11 @@ runpodctl registry get ### Create a registry authentication -Create credentials for a private container registry. Supply the password with the `--password` flag, by piping or redirecting it into `--password-stdin`, or by omitting both flags to enter it at an interactive prompt. +Create credentials for a private container registry. Supply the password in one of three ways: + +- Pass it directly with the `--password` flag. +- Pipe or redirect it into `--password-stdin`. +- Omit both flags to enter it at an interactive prompt. Pass the password directly with `--password`: