Skip to content

Commit 148ee66

Browse files
committed
Add install and uninstall completions documentation
1 parent 445f2ea commit 148ee66

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

website/docs/_advanced_install.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ If Scala CLI was installed via the installation script, you can uninstall it wit
472472
```bash
473473
scala-cli uninstall
474474
```
475+
476+
If you have installed Scala CLI completions into your shell, `uninstall` command uninstalls them by running [`uninstall-completions`](/docs/commands/completions) command under the hood.
475477
</TabItem>
476478

477479
<TabItem value="manual-u">
@@ -573,6 +575,8 @@ If Scala CLI was installed via the installation script, you can uninstall it wit
573575
```bash
574576
scala-cli uninstall
575577
```
578+
579+
If you have installed Scala CLI completions into your shell, `uninstall` command uninstalls them by running [`uninstall-completions`](/docs/commands/completions) command under the hood.
576580
</TabItem>
577581

578582
<TabItem value="manual-u">

website/docs/commands/completions.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Completions
3+
sidebar_position: 19
4+
---
5+
6+
The completions commands can be used to install Scala CLI completions into your shell and uninstall them.
7+
8+
## Installing completions
9+
To install completions run the `install-completions` command:
10+
11+
```bash ignore
12+
scala-cli install-completions
13+
```
14+
15+
## Uninstalling completions
16+
To uninstall completions run the `uninstall-completions` command:
17+
18+
```bash ignore
19+
scala-cli uninstall-completions
20+
```

0 commit comments

Comments
 (0)