Skip to content

Commit da7094a

Browse files
authored
Docs: PowerShell command-line applications (#3062)
* Docs: PS + WSL + K9s * Docs: Command line apps * Update powershell-wsl-k9s.png
1 parent f630d3f commit da7094a

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

Website/docs/application/powershell.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ sidebar_position: 9
44

55
# PowerShell
66

7-
With **PowerShell** you can start PowerShell consoles on the local computer or connect to remote computers via [PowerShell Remoting](https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting). The integration of PowerShell with NETworkManger supports tabs and profiles for hosts. The connection can be established via a profile (double-click, Enter key or right-click `Connect`) or directly via the [connection](#connect) dialog.
7+
With **PowerShell** you can launch PowerShell consoles locally or connect to remote computers using [PowerShell Remoting](https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting). You can also execute command-line applications such as `wsl`, `k9s`, or any other tools typically accessible from a PowerShell session. In addition, you can run PowerShell scripts directly within the console.
8+
9+
The integration of PuTTY with NETworkManger supports tabs and profiles for hosts (and tools). You can launch the console / establish a connection via a profile (double-click, Enter key or right-click `Connect`) or directly via the [connection](#connect) dialog.
810

911
:::info
1012

@@ -14,19 +16,23 @@ PowerShell is a command-line shell and scripting language developed by Microsoft
1416

1517
:::note
1618

17-
Windows PowerShell and PowerShell Core are supported. Indructions for installing PowerShell Core can be found on the [official website](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?).
19+
Windows PowerShell and PowerShell are supported. Indructions for installing PowerShell Core can be found on the [official website](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?).
1820

1921
:::
2022

2123
:::tip
2224

23-
Windows Subsystem for Linux (WSL) can be used in PowerShell by passing the following [command](#command) to the PowerShell console:
25+
Launching a command-line application such as `wsl` or `k9s` can be done by passing the [command](#command) to the PowerShell console.
2426

2527
```powershell
28+
# Connect to WSL
2629
wsl -d <DISTRIBUTION>
30+
31+
# Connect to Kubernetes
32+
k9s --readonly
2733
```
2834

29-
See [FAQ > How to use Windows Subsystem for Linux (WSL) in PowerShell?](../faq/powershell-wsl) for more information.
35+
See [FAQ > PowerShell with command-line applications](../faq/powershell-cmd-apps) for more information.
3036

3137
:::
3238

@@ -183,6 +189,8 @@ Only available if [Remote console](#remote-console-1) is disabled.
183189

184190
Use `wsl -d <DISTRIBUTION>` to connect to Windows Subsystem for Linux.
185191

192+
Use `k9s` or `k9s --readonly` to manage Kubernetes clusters.
193+
186194
:::
187195

188196
### Additional command line
@@ -225,6 +233,8 @@ Command to execute when the PowerShell console is started locally.
225233

226234
Use `wsl -d <DISTRIBUTION>` to connect to Windows Subsystem for Linux.
227235

236+
Use `k9s` or `k9s --readonly` to manage Kubernetes clusters.
237+
228238
:::
229239

230240
### Additional command line
@@ -285,6 +295,8 @@ Default command to execute when the PowerShell console is started locally.
285295

286296
Use `wsl -d <DISTRIBUTION>` to connect to Windows Subsystem for Linux.
287297

298+
Use `k9s` or `k9s --readonly` to manage Kubernetes clusters.
299+
288300
:::
289301

290302
### Additional command line

Website/docs/application/putty.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ sidebar_position: 10
44

55
# PuTTY
66

7-
With **PuTTY** you can connect to a remote computer via Secure Shell (SSH) or Telnet. In addition you can connect to a local serial port. The integration of PuTTY with NETworkManger supports tabs and profiles for hosts. The connection can be established via a profile (double-click, Enter key or right-click `Connect`) or directly via the [connection](#connect) dialog.
7+
With **PuTTY** you can connect to a remote computer via Secure Shell (SSH) or Telnet. In addition you can connect to a local serial port.
8+
9+
The integration of PuTTY with NETworkManger supports tabs and profiles for hosts. You can establish a connection via a profile (double-click, Enter key or right-click `Connect`) or directly via the [connection](#connect) dialog.
810

911
:::info
1012

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
# PowerShell with WSL
2-
3-
## How to use Windows Subsystem for Linux (WSL) in PowerShell?
1+
# PowerShell with command-line applications
42

53
Create a new connection or profile with the following settings:
64

75
- Remote console: `False`
8-
- Command: `wsl -d <DISTRIBUTION>`
6+
- Command: `<FilePath> <Arguments>`
97

10-
![PowerShell with WSL](../img/powershell-wsl.gif)
8+
```PowerShell
9+
# Connect to WSL
10+
wsl -d <DISTRIBUTION>
11+
12+
# Connect to Kubernetes
13+
k9s --readonly
14+
```
1115

1216
:::note
1317

1418
Windows Subsystem for Linux (WSL) must be installed and enabled on your system to use this feature.
1519

1620
:::
21+
22+
![PowerShell with WSL](../img/powershell-wsl.gif)
23+
24+
![PowerShell with WSL and K9s](../img/powershell-wsl-k9s.png)
99.5 KB
Loading

0 commit comments

Comments
 (0)