Skip to content

Commit

Permalink
Update readme with examples (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Dec 2, 2024
1 parent d35e563 commit 01e1e5f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"words": [
"anypackage",
"Avalonia",
"Defaultv",
"netstandard",
"Nieto",
Expand Down
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,39 @@ Import-Module AnyPackage.NuGet
```powershell
Find-Package -Name System.Management.Automation
```

### Get installed packages

Gets installed packages from the NuGet global packages directory.

```powershell
Get-Package
```

### Install packages

Installs packages to the NuGet global packages directory.

```powershell
Install-Package -Name System.Management.Automation
```

### Install packages with specified framework

```powershell
Install-Package -Name Avalonia -Provider NuGet -Framework netstandard2.0
```

### Install packages with dependency behavior

```powershell
Install-Package -Name Avalonia -Provider NuGet -DependencyBehavior Highest
```

### Save packages

Saves packages to a directory.

```powershell
Save-Package -Name System.Management.Automation -Path C:\Temp
```

0 comments on commit 01e1e5f

Please sign in to comment.