Skip to content

Commit

Permalink
Merge pull request #1315 from run-ai/Add_Windows_Support_CLIV2_2.18
Browse files Browse the repository at this point in the history
Added Windows support to CLIV2
  • Loading branch information
lavianalon authored Dec 19, 2024
2 parents 7fa5839 + 54cdacd commit 1ed3ef9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Researcher/cli-reference/new-cli/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This command-line interface is a complete revamp of the command-line interface.

* The CLI internally uses the [Control-plane API](../../../developer/admin-rest-api/overview.md). This provides a single point of view on Workloads removing dissimilarities between the user interface, programming interface and the command-line interface.
* As such, it also removes the need to configure the [Kubernetes API server](../../../admin/authentication/researcher-authentication.md) for authentication.
* The CLI is only available for Run:ai cluster version 2.18 and up.
* **The CLI is only available for Run:ai cluster version 2.18 and up.**
* The new V2 CLI is backward compatible with the older V1 CLI.


Expand Down
7 changes: 7 additions & 0 deletions docs/admin/researcher-setup/new-cli-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ Auto-completion assists with completing the command syntax automatically for eas
source <(runai completion bash)
```

=== "Windows"
Add the following code in the powershell profile:
```powershell
runai.exe completion powershell | Out-String | Invoke-Expression
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
```
For more completion modes options, see [Powershell completions](https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md#powershell-completions).

0 comments on commit 1ed3ef9

Please sign in to comment.