Example
Configure the CLI with your API key:For first-time setup, we recommend using
runpodctl doctor instead, which guides you through API key configuration and SSH key setup interactively.Flags
string
Your Runpod API key, which authenticates the CLI to access your account. You can generate an API key from the Runpod console.
string
default:"https://api.runpod.io/graphql"
The Runpod API endpoint URL. The default value should work for most users.
Environment variables
You can also configure the CLI using environment variables. When set, these take precedence over the corresponding values in your config file.string
Your Runpod API key. Overrides the
apiKey value in your config file.string
The Runpod GraphQL API endpoint URL. Overrides the
apiUrl value in your config file.string
The Runpod REST API endpoint URL. Overrides the
restApiUrl value in your config file.