diff --git a/runpodctl/overview.mdx b/runpodctl/overview.mdx index 2f768a53b..d6ff068aa 100644 --- a/runpodctl/overview.mdx +++ b/runpodctl/overview.mdx @@ -163,6 +163,8 @@ This installs `runpodctl` globally on your system, so you can run commands from Before you can use `runpodctl` locally, you must configure it with an [API key](/get-started/credentials). +If you've already logged in with [`rp login`](/sdk/cli#rp-login) or `flash login`, you can skip this step. Those commands save your API key to `~/.runpod/config.toml`, the same file `runpodctl` reads its configuration from, so `runpodctl` uses that key automatically. Keys saved to a named profile with `rp login --profile` aren't read. + The easiest way to set up your API key and SSH configuration is with the `doctor` command: ```bash @@ -182,6 +184,12 @@ After running the command, you should see a confirmation message similar to this saved apiKey into config file: /Users/runpod/.runpod/config.toml ``` +When more than one API key is available, `runpodctl` uses the first one it finds in this order: + +1. The `RUNPOD_API_KEY` environment variable. +2. The key saved with `runpodctl config` or `runpodctl doctor`. +3. The key saved by `rp login` or `flash login`. + ### Step 3: Verify installation To verify that `runpodctl` installed successfully, run this command: