Skip to content

Commit aed77b7

Browse files
Merge pull request #823 from run-ai:v2.18-RUN-16337-CLI-V2
V2.18-RUN-16337-CLI-V2
2 parents e4457c9 + 4304b56 commit aed77b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1856
-40
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Run:ai Command-line Interface
3+
summary: This article is the summary article for the CLI V2.
4+
authors:
5+
- Jason Novich
6+
date: 2024-Jun-18
7+
---
8+
9+
## Summary
10+
11+
The Run:ai Command-line Interface (CLI) tool for a Researcher to send deep learning workloads, acquire GPU-based containers, list jobs, and access other features in the Run:ai platform.
12+
13+
```
14+
runai [flags]
15+
```
16+
17+
### Options
18+
19+
```
20+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
21+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
22+
-d, --debug enable debug mode
23+
-h, --help help for runai
24+
-v, --verbose enable verbose mode
25+
```
26+
27+
### See Also
28+
29+
* [runai cluster](runai_cluster.md)—cluster management
30+
* [runai config](runai_config.md)—configuration management
31+
* [runai list](runai_list.md)—[Deprecated] display resource list. By default displays the job list
32+
* [runai login](runai_login.md)—login to the control plane
33+
* [runai logout](runai_logout.md)—logout from control plane
34+
* [runai node](runai_node.md)—node management
35+
* [runai nodepool](runai_nodepool.md)—node pool management
36+
* [runai project](runai_project.md)—project management
37+
* [runai report](runai_report.md)—report management
38+
* [runai training](runai_training.md)—training management
39+
* [runai upgrade](runai_upgrade.md)—upgrades the CLI to the latest version
40+
* [runai version](runai_version.md)—print version information
41+
* [runai workload](runai_workload.md)—workload management
42+
* [runai workspace](runai_workspace.md)—workspace management
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## runai cluster
2+
3+
cluster management
4+
5+
```
6+
runai cluster [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for cluster
13+
--interactive enable set interactive mode (enabled|disabled)
14+
```
15+
16+
### Options inherited from parent commands
17+
18+
```
19+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
20+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
21+
-d, --debug enable debug mode
22+
-v, --verbose enable verbose mode
23+
```
24+
25+
### SEE ALSO
26+
27+
* [runai](runai.md) - Run:ai Command-line Interface
28+
* [runai cluster list](runai_cluster_list.md) - cluster list command
29+
* [runai cluster set](runai_cluster_set.md) - set cluster context
30+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## runai cluster list
2+
3+
cluster list command
4+
5+
```
6+
runai cluster list [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for list
13+
--json Output structure JSON
14+
--table Output structure table
15+
--yaml Output structure YAML
16+
```
17+
18+
### Options inherited from parent commands
19+
20+
```
21+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
22+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
23+
-d, --debug enable debug mode
24+
-v, --verbose enable verbose mode
25+
```
26+
27+
### SEE ALSO
28+
29+
* [runai cluster](runai_cluster.md) - cluster management
30+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## runai cluster set
2+
3+
set cluster context
4+
5+
```
6+
runai cluster set [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for set
13+
--id string set by cluster ID
14+
--name string set by cluster name
15+
```
16+
17+
### Options inherited from parent commands
18+
19+
```
20+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
21+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
22+
-d, --debug enable debug mode
23+
-v, --verbose enable verbose mode
24+
```
25+
26+
### SEE ALSO
27+
28+
* [runai cluster](runai_cluster.md) - cluster management
29+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## runai config
2+
3+
configuration management
4+
5+
```
6+
runai config [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for config
13+
--interactive enable set interactive mode (enabled|disabled)
14+
```
15+
16+
### Options inherited from parent commands
17+
18+
```
19+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
20+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
21+
-d, --debug enable debug mode
22+
-v, --verbose enable verbose mode
23+
```
24+
25+
### SEE ALSO
26+
27+
* [runai](runai.md) - Run:ai Command-line Interface
28+
* [runai config generate](runai_config_generate.md) - generate config file
29+
* [runai config set](runai_config_set.md) - Set configuration values
30+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## runai config generate
2+
3+
generate config file
4+
5+
```
6+
runai config generate [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--file string Output structure to file
13+
-h, --help help for generate
14+
--json Output structure JSON
15+
--yaml Output structure YAML
16+
```
17+
18+
### Options inherited from parent commands
19+
20+
```
21+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
22+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
23+
-d, --debug enable debug mode
24+
-v, --verbose enable verbose mode
25+
```
26+
27+
### SEE ALSO
28+
29+
* [runai config](runai_config.md) - configuration management
30+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## runai config set
2+
3+
Set configuration values
4+
5+
```
6+
runai config set [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--auth-url string set the authorization URL
13+
--cp-url string set the control plane URL
14+
-h, --help help for set
15+
--interactive enable set interactive mode (enabled|disabled)
16+
--output string set the default output type
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
23+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
24+
-d, --debug enable debug mode
25+
-v, --verbose enable verbose mode
26+
```
27+
28+
### SEE ALSO
29+
30+
* [runai config](runai_config.md) - configuration management
31+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## runai list
2+
3+
[Deprecated] display resource list. By default displays the job list
4+
5+
```
6+
runai list [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-A, --all-projects list jobs from all projects
13+
-h, --help help for list
14+
-p, --project string Specify the project to which the command applies. By default, commands apply to the default project. To change the default project use ‘runai config project <project name>’
15+
```
16+
17+
### Options inherited from parent commands
18+
19+
```
20+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
21+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
22+
-d, --debug enable debug mode
23+
-v, --verbose enable verbose mode
24+
```
25+
26+
### SEE ALSO
27+
28+
* [runai](runai.md) - Run:ai Command-line Interface
29+
* [runai list clusters](runai_list_clusters.md) - [Deprecated] list all available clusters
30+
* [runai list jobs](runai_list_jobs.md) - [Deprecated] list all jobs
31+
* [runai list nodes](runai_list_nodes.md) - [Deprecated] list all nodes
32+
* [runai list projects](runai_list_projects.md) - [Deprecated] list all available projects
33+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## runai list clusters
2+
3+
[Deprecated] list all available clusters
4+
5+
```
6+
runai list clusters [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for clusters
13+
--json Output structure JSON
14+
--table Output structure table
15+
--yaml Output structure YAML
16+
```
17+
18+
### Options inherited from parent commands
19+
20+
```
21+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
22+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
23+
-d, --debug enable debug mode
24+
-v, --verbose enable verbose mode
25+
```
26+
27+
### SEE ALSO
28+
29+
* [runai list](runai_list.md) - [Deprecated] display resource list. By default displays the job list
30+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## runai list jobs
2+
3+
[Deprecated] list all jobs
4+
5+
```
6+
runai list jobs [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-A, --all-projects list jobs from all projects
13+
-h, --help help for jobs
14+
--json Output structure JSON
15+
-p, --project string Specify the project to which the command applies. By default, commands apply to the default project. To change the default project use ‘runai config project <project name>’
16+
--table Output structure table
17+
--yaml Output structure YAML
18+
```
19+
20+
### Options inherited from parent commands
21+
22+
```
23+
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")
24+
--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH (default "~/.runai/")
25+
-d, --debug enable debug mode
26+
-v, --verbose enable verbose mode
27+
```
28+
29+
### SEE ALSO
30+
31+
* [runai list](runai_list.md) - [Deprecated] display resource list. By default displays the job list
32+

0 commit comments

Comments
 (0)