Skip to content

Commit bf91901

Browse files
authored
Rewrite runpodctl reference documentation (#454)
2 parents 37fd8a6 + 5c1e3ea commit bf91901

27 files changed

+671
-503
lines changed

docs.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,31 +339,24 @@
339339
"tab": "CLI",
340340
"groups": [
341341
{
342-
"group": "Get started",
343-
"pages": ["runpodctl/overview", "runpodctl/install-runpodctl"]
342+
"group": "Runpod CLI",
343+
"pages": ["runpodctl/overview"]
344344
},
345345
{
346346
"group": "Reference",
347347
"pages": [
348-
"runpodctl/reference/runpodctl",
349348
"runpodctl/reference/runpodctl-config",
350-
"runpodctl/reference/runpodctl-create",
351349
"runpodctl/reference/runpodctl-create-pod",
352350
"runpodctl/reference/runpodctl-create-pods",
353-
"runpodctl/reference/runpodctl-get",
354351
"runpodctl/reference/runpodctl-get-cloud",
355352
"runpodctl/reference/runpodctl-get-pod",
356353
"runpodctl/reference/runpodctl-receive",
357-
"runpodctl/reference/runpodctl-remove",
358354
"runpodctl/reference/runpodctl-remove-pod",
359355
"runpodctl/reference/runpodctl-remove-pods",
360356
"runpodctl/reference/runpodctl-send",
361-
"runpodctl/reference/runpodctl-ssh",
362357
"runpodctl/reference/runpodctl-ssh-add-key",
363358
"runpodctl/reference/runpodctl-ssh-list-keys",
364-
"runpodctl/reference/runpodctl-start",
365359
"runpodctl/reference/runpodctl-start-pod",
366-
"runpodctl/reference/runpodctl-stop",
367360
"runpodctl/reference/runpodctl-stop-pod",
368361
"runpodctl/reference/runpodctl-update",
369362
"runpodctl/reference/runpodctl-version"
@@ -478,6 +471,10 @@
478471
},
479472

480473
"redirects": [
474+
{
475+
"source": "/runpodctl/install-runpodctl",
476+
"destination": "/runpodctl/overview"
477+
},
481478
{
482479
"source": "/references/faq",
483480
"destination": "/references/troubleshooting/zero-gpus"

pods/manage-pods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Create, start, stop, and terminate Pods using the Runpod console o
55

66
## Before you begin
77

8-
If you want to manage Pods using the Runpod CLI, you'll need to [install Runpod CLI](/runpodctl/install-runpodctl), and set your [API key](/get-started/api-keys) in the configuration.
8+
If you want to manage Pods using the Runpod CLI, you'll need to [install Runpod CLI](/runpodctl/overview), and set your [API key](/get-started/api-keys) in the configuration.
99

1010
Run the following command, replacing `RUNPOD_API_KEY` with your API key:
1111

pods/storage/transfer-files.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ Runpod supports four different file transfer methods, each optimized for specifi
1515
| **Cloud sync** | Backup, multi-environment sharing | Cloud provider setup | Provider dependent |
1616

1717
### runpodctl
18+
1819
The simplest option for occasional transfers. Uses secure one-time codes and requires no setup since it's pre-installed on all Pods. Perfect for quick file exchanges.
1920

20-
To install `runpodctl` on your local machine, see the [installation guide](/runpodctl/install-runpodctl).
21+
To install `runpodctl` on your local machine, see the [installation guide](/runpodctl/overview).
2122

2223
### SCP
24+
2325
A reliable, standard method that works over SSH. Ideal for users comfortable with command-line tools who need to transfer both individual files and directories.
2426

2527
To configure your Pod for SSH access, see the ([SSH setup guide](/pods/configuration/use-ssh)).
2628

2729
### rsync
30+
2831
The most powerful option, featuring incremental transfers, compression, and detailed progress reporting. Essential for large datasets, regular synchronization, and preserving file attributes.
2932

3033
To set up `rsync`:
@@ -33,6 +36,7 @@ To set up `rsync`:
3336
- Ensure your local machine is running a Linux or WSL environment.
3437

3538
### Cloud sync
39+
3640
Direct synchronization with cloud storage providers like AWS S3, Google Cloud Storage, or Dropbox. Best for creating backups or sharing files across multiple environments.
3741

3842
To learn more, see the [cloud sync configuration guide](/pods/storage/cloud-sync).

runpodctl/install-runpodctl.mdx

Lines changed: 0 additions & 85 deletions
This file was deleted.

runpodctl/overview.mdx

Lines changed: 58 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,103 @@
11
---
2-
title: "Runpod CLI overview"
2+
title: "Overview"
33
sidebarTitle: "Overview"
44
---
55

6-
Runpod CLI is an [open source](https://github.com/runpod/runpodctl) command-line interface tool that simplifies the management of GPU [Pods](/pods/overview) and [Serverless](/serverless/overview) endpoints on the Runpod platform. You can use Runpod CLI to execute code on Pods, deploy endpoints, transfer data, and manage computing resources efficiently.
6+
Runpod CLI is an [open source](https://github.com/runpod/runpodctl) command-line interface tool for managing your Runpod resources remotely from your local machine. You can transfer files and data between your local system and Runpod, execute code on remote Pods, and automate Pod deployment workflows.
77

8-
Every Pod you deploy comes preinstalled with the `runpodctl` command. You can also [install it locally](/runpodctl/install-runpodctl) to manage Runpod resources from your own machine.
8+
## Install Runpod CLI locally
99

10-
## Key capabilities
10+
Every Pod you deploy comes preinstalled with the `runpodctl` command and a Pod-scoped API key. You can also install it on your local machine to manage your Pods remotely from your own system.
1111

12-
Runpod CLI enables you to:
12+
### Step 1: Choose an installation method
1313

14-
* [Manage Pods](/pods/manage-pods) and Serverless endpoints programmatically.
15-
* [Transfer files](/pods/storage/transfer-files) and data between your local system and Runpod.
16-
17-
## Installation
18-
19-
For more information, see [Install runpodctl](/runpodctl/install-runpodctl).
14+
Choose the installation method that matches your operating system.
2015

2116
<Tabs>
22-
<Tab title="macOS (Homebrew)">
23-
Install using Homebrew:
17+
<Tab title="macOS">
2418

19+
**Homebrew:**
2520
```sh
2621
brew install runpod/runpodctl/runpodctl
2722
```
2823

29-
</Tab>
24+
**ARM (Apple Silicon):**
25+
```sh
26+
wget --quiet --show-progress https://github.com/runpod/runpodctl/releases/download/v1.14.3/runpodctl-darwin-arm64 -O runpodctl && chmod +x runpodctl && sudo mv runpodctl /usr/local/bin/runpodctl
27+
```
28+
29+
**AMD (Intel):**
30+
```sh
31+
wget --quiet --show-progress https://github.com/runpod/runpodctl/releases/download/v1.14.3/runpodctl-darwin-amd64 -O runpodctl && chmod +x runpodctl && sudo mv runpodctl /usr/local/bin/runpodctl
32+
```
3033

31-
<Tab title="Linux (WSL)">
32-
Install using `wget`:
34+
</Tab>
3335

36+
<Tab title="Linux">
3437
```sh
35-
wget -qO- cli.runpod.net | sudo bash
38+
wget --quiet --show-progress https://github.com/Run-Pod/runpodctl/releases/download/v1.14.3/runpodctl-linux-amd64 -O runpodctl && chmod +x runpodctl && sudo cp runpodctl /usr/bin/runpodctl
3639
```
3740

3841
</Tab>
3942

40-
<Tab title="Windows (PowerShell)">
41-
Install using PowerShell:
43+
<Tab title="Windows">
44+
```sh
45+
wget https://github.com/runpod/runpodctl/releases/download/v1.14.3/runpodctl-windows-amd64.exe -O runpodctl.exe
46+
```
4247

48+
</Tab>
49+
50+
<Tab title="Google Colab / Jupyter Notebook">
4351
```sh
44-
wget https://github.com/runpod/runpodctl/releases/latest/download/runpodctl-windows-amd64.exe -O runpodctl.exe
52+
!wget --quiet --show-progress https://github.com/Run-Pod/runpodctl/releases/download/v1.14.3/runpodctl-linux-amd -O runpodctl
53+
!chmod +x runpodctl
54+
!cp runpodctl /usr/bin/runpodctl
4555
```
4656

4757
</Tab>
4858

4959
</Tabs>
5060

51-
## Configure your API key
61+
This installs `runpodctl` globally on your system, so you can run commands from any directory.
62+
63+
### Step 2: Configure your API key
5264

53-
Before you can use Runpod CLI to manage resources from your local machine, you'll need to configure your [API key](/get-started/api-keys). You can create and manage API keys on the [Runpod account settings page](https://www.console.runpod.io/user/settings).
65+
Before you can use `runpodctl` locally, you must configure it with an [API key](/get-started/api-keys).
5466

55-
After installing `runpodctl` on your local system, run this command to configure it with your API key:
67+
Run the following command to add your API key to `runpodctl`, replacing `YOUR_API_KEY` with your API key:
5668

5769
```sh
58-
runpodctl config --apiKey [API_KEY]
70+
runpodctl config --apiKey YOUR_API_KEY
5971
```
6072

61-
## Help command
73+
After running the command, you should see a confirmation message similar to this:
74+
```text
75+
saved apiKey into config file: /Users/runpod/.runpod/config.toml
76+
```
77+
78+
### Step 3: Verify installation
6279

63-
Learn how to use Runpod CLI commands by browsing the [CLI reference](/runpodctl/reference/runpodctl) or by running the `help` command:
80+
To verify that `runpodctl` installed successfully, run this command:
6481

6582
```sh
66-
runpodctl help
83+
runpodctl version
6784
```
6885

69-
Learn more about a particular command by running:
86+
You should see which version is installed:
7087

7188
```sh
72-
runpodctl [command] help
89+
runpodctl v1.14.4
90+
```
91+
92+
## Help and reference
93+
94+
Learn how to use Runpod CLI commands by browsing the CLI reference using the sidebar to the left, or by running the `help` command:
95+
96+
```sh
97+
runpodctl help
7398
```
7499

75-
For a comprehensive list of commands, see the [Runpod CLI reference](/runpodctl/reference/runpodctl).
100+
Learn more about a particular command by running:
101+
```sh
102+
runpodctl [command] help
103+
```
Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
---
2-
title: "Config"
2+
title: "config"
3+
sidebarTitle: "config"
34
---
45

5-
## runpodctl config
6+
Configure the Runpod CLI with your API credentials and API URL to enable programmatic access to your Runpod resources.
67

7-
CLI Config
8+
```sh
9+
runpodctl config [flags]
10+
```
811

9-
### Synopsis
12+
## Example
1013

11-
Runpod CLI Config Settings
14+
Configure the CLI with your API key:
1215

1316
```sh
14-
runpodctl config [flags]
17+
runpodctl config --apiKey rpaPOIUYYULKDSALVIUT3Q2ZRKZ98IUYTSK2OQQ2CWQxkd01
1518
```
1619

17-
### Options
20+
## Flags
1821

19-
```text
20-
--apiKey string Runpod API key
21-
--apiUrl string Runpod API URL (default "https://api.runpod.io/graphql")
22-
-h, --help help for config
23-
```
22+
The following flags are available for the `config` command:
23+
24+
---
25+
26+
`--apiKey <value>``string`
27+
28+
Your Runpod API key, which authenticates the CLI to access your account. You can generate an API key from the [Runpod console](https://www.runpod.io/console/user/settings).
29+
30+
---
2431

25-
### SEE ALSO
32+
`--apiUrl <value>``string` • default = `https://api.runpod.io/graphql`
2633

27-
* [runpodctl](/runpodctl/reference/runpodctl) - CLI for runpod.io
34+
The Runpod API endpoint URL. The default value should work for most users.

0 commit comments

Comments
 (0)