|
1 | 1 | --- |
2 | | -title: "Runpod CLI overview" |
| 2 | +title: "Overview" |
3 | 3 | sidebarTitle: "Overview" |
4 | 4 | --- |
5 | 5 |
|
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. |
7 | 7 |
|
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 |
9 | 9 |
|
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. |
11 | 11 |
|
12 | | -Runpod CLI enables you to: |
| 12 | +### Step 1: Choose an installation method |
13 | 13 |
|
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. |
20 | 15 |
|
21 | 16 | <Tabs> |
22 | | -<Tab title="macOS (Homebrew)"> |
23 | | -Install using Homebrew: |
| 17 | +<Tab title="macOS"> |
24 | 18 |
|
| 19 | +**Homebrew:** |
25 | 20 | ```sh |
26 | 21 | brew install runpod/runpodctl/runpodctl |
27 | 22 | ``` |
28 | 23 |
|
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 | +``` |
30 | 33 |
|
31 | | -<Tab title="Linux (WSL)"> |
32 | | -Install using `wget`: |
| 34 | +</Tab> |
33 | 35 |
|
| 36 | +<Tab title="Linux"> |
34 | 37 | ```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 |
36 | 39 | ``` |
37 | 40 |
|
38 | 41 | </Tab> |
39 | 42 |
|
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 | +``` |
42 | 47 |
|
| 48 | +</Tab> |
| 49 | + |
| 50 | +<Tab title="Google Colab / Jupyter Notebook"> |
43 | 51 | ```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 |
45 | 55 | ``` |
46 | 56 |
|
47 | 57 | </Tab> |
48 | 58 |
|
49 | 59 | </Tabs> |
50 | 60 |
|
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 |
52 | 64 |
|
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). |
54 | 66 |
|
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: |
56 | 68 |
|
57 | 69 | ```sh |
58 | | -runpodctl config --apiKey [API_KEY] |
| 70 | +runpodctl config --apiKey YOUR_API_KEY |
59 | 71 | ``` |
60 | 72 |
|
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 |
62 | 79 |
|
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: |
64 | 81 |
|
65 | 82 | ```sh |
66 | | -runpodctl help |
| 83 | +runpodctl version |
67 | 84 | ``` |
68 | 85 |
|
69 | | -Learn more about a particular command by running: |
| 86 | +You should see which version is installed: |
70 | 87 |
|
71 | 88 | ```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 |
73 | 98 | ``` |
74 | 99 |
|
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 | +``` |
0 commit comments