Skip to content

Commit 57d8a92

Browse files
Merge pull request #5425 from samuel100/samuel100/uninstall-instructions
how to upgrade and uninstall.
2 parents eddc567 + e9240f3 commit 57d8a92

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

articles/ai-foundry/foundry-local/get-started.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,33 @@ foundry cache --help
106106
> [!TIP]
107107
> For a complete guide to all CLI commands and their usage, see the [Foundry Local CLI Reference](reference/reference-cli.md).
108108
109+
## Upgrading Foundry Local
110+
111+
To upgrade Foundry Local to the latest version, use the following commands based on your operating system:
112+
113+
- **Windows**: Open a terminal and run:
114+
```bash
115+
winget upgrade --id Microsoft.FoundryLocal
116+
```
117+
- **macOS**: Open a terminal and run:
118+
```bash
119+
brew upgrade foundrylocal
120+
```
121+
122+
## Uninstalling Foundry Local
123+
124+
If you wish to uninstall Foundry Local, use the following commands based on your operating system:
125+
126+
- **Windows**: Open a terminal and run:
127+
```bash
128+
winget uninstall Microsoft.FoundryLocal
129+
```
130+
- **macOS**: Open a terminal and run:
131+
```bash
132+
brew rm foundrylocal
133+
brew untap microsoft/foundrylocal
134+
brew cleanup --scrub
135+
```
109136
110137
## Next steps
111138

articles/ai-foundry/foundry-local/reference/reference-cli.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ The following table summarizes the commands related to managing and running mode
5252
| `foundry model info <model> --license` | Displays the license information for a specific model. |
5353
| `foundry model download <model>` | Downloads a model to the local cache without running it. |
5454
| `foundry model load <model>` | Loads a model into the service. |
55-
| `foundry model unload <model>` | Unloads a model from the service. **You must provide a valid model ID (not an alias).**. |
56-
57-
> [!IMPORTANT]
58-
> **For the `foundry model unload` command, you must provide a valid model ID (not an alias)** because you could have multiple models loaded with the same alias. For example, if you have `qwen2.5-0.5b-instruct-generic-cpu` *and*`qwen2.5-0.5b-instruct-cuda-gpu` loaded with both CPU and CUDA, you need to specify which one to unload.
55+
| `foundry model unload <model>` | Unloads a model from the service. |
5956

6057

6158
## Service commands
@@ -83,7 +80,4 @@ The following table summarizes the commands related to managing the local cache
8380
| `foundry cache location` | Displays the current cache directory. |
8481
| `foundry cache list` | Lists all models stored in the local cache. |
8582
| `foundry cache cd <path>` | Changes the cache directory. |
86-
| `foundry cache remove <model>` | Deletes a model from the local cache. **You must provide a valid model ID (not an alias).** |
87-
88-
> [!IMPORTANT]
89-
> **For the `foundry cache remove` command, you must provide a valid model ID (not an alias)** because you could have multiple models on disk with the same alias. For example, if you downloaded both `qwen2.5-0.5b-instruct-generic-cpu` *and* `qwen2.5-0.5b-instruct-cuda-gpu`, you need to specify which one to remove.
83+
| `foundry cache remove <model>` | Deletes a model from the local cache. |

0 commit comments

Comments
 (0)