Paket


paket update

Update one or all dependencies to their latest version and update projects.

1: 
2: 
3: 
paket update [--help] [nuget <package id>] [version <version>] [group <name>] [--force]
             [--redirects] [--createnewbindingfiles] [--clean-redirects] [--no-install]
             [--keep-major] [--keep-minor] [--keep-patch] [--filter] [--touch-affected-refs]

OPTIONS:

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
nuget <package id>    NuGet package id.
version <version>     Allows to specify version of the package.
group <name>          Allows to specify the dependency group.
--force, -f           Forces the download and reinstallation of all packages.
--redirects           Creates binding redirects for the NuGet packages.
--createnewbindingfiles
                      Creates binding redirect files if needed.
--clean-redirects     Removes all binding redirects that are not specified by Paket.
--no-install          Skips paket install process (patching of csproj, fsproj, ... files) after
                      the generation of paket.lock file.
--keep-major          Allows only updates that are not changing the major version of the NuGet
                      packages.
--keep-minor          Allows only updates that are not changing the minor version of the NuGet
                      packages.
--keep-patch          Allows only updates that are not changing the patch version of the NuGet
                      packages.
--filter              Treat the nuget parameter as a regex to filter packages rather than an
                      exact match.
--touch-affected-refs Touches project files referencing packages which are affected, to help
                      incremental build tools detecting the change.
--verbose, -v         Enable verbose console output for the paket process.
--log-file <path>     Specify a log file for the paket process.
--silent, -s          Suppress console output for the paket process.
--version             Display the version.
--from-bootstrapper   Call comming from the '--run' feature of the bootstrapper.
--help                display this list of options.

If you add the -v flag, then Paket will run in verbose mode and show detailed information.

With --log-file [FileName] you can trace the logged information into a file.

Updating all packages

If you do not specify a package, then all packages from paket.dependencies are updated.

1: 
paket update [--force|-f] [--redirects] [--no-install]

First, the current paket.lock file is deleted. paket update then recomputes the current dependency resolution, as explained under Package resolution algorithm, and writes it to paket.lock. It then proceeds to download the packages and to install them into the projects.

Please see paket install if you want to keep the current versions from your paket.lock file.

Options:

--force [-f]: Forces the download and reinstallation of all packages.

--redirects: Creates binding redirects for the NuGet packages.

--no-install: Skips paket install process afterward generation of paket.lock file.

Updating a single package, or packages matching a pattern

It's also possible to update only specified packages and to keep all other dependencies fixed:

1: 
paket update nuget PACKAGENAME [version VERSION] [group GROUPNAME] [--force|-f] [--redirects] [--no-install]

Options:

nuget <string>: Nuget package id

version <string>: Allows to specify version of the package.

group <string>: Allows to specify the group where the package is located. If omitted then Paket defaults to the Main group.

--force [-f]: Forces the download and reinstallation of all packages.

--redirects: Creates binding redirects for the NuGet packages.

--no-install: Skips paket install process afterward generation of paket.lock file.

--filter: Treat PACKAGENAME as a regex pattern to match against, rather than a single package. Enforces a "total" match (i.e. an implicit ^ and $ at beginning and end of PACKAGENAME)

Updating a single group

If you want to update a single group you can use the following command:

1: 
paket update group GROUPNAME [--force|-f] [--redirects] [--no-install]

Options:

group <string>: Group name

--force [-f]: Forces the download and reinstallation of all packages.

--redirects: Creates binding redirects for the NuGet packages.

--no-install: Skips paket install process afterward generation of paket.lock file.

Updating http dependencies

If you want to update a file you need to use the paket install command or paket update command with --force [-f] option.

Using groups for http dependent files can be helpful in order to reduce the number of files that are re-installed.

val id : x:'T -> 'T

Full name: Microsoft.FSharp.Core.Operators.id
val not : value:bool -> bool

Full name: Microsoft.FSharp.Core.Operators.not
val lock : lockObject:'Lock -> action:(unit -> 'T) -> 'T (requires reference type)

Full name: Microsoft.FSharp.Core.Operators.lock
val log : value:'T -> 'T (requires member Log)

Full name: Microsoft.FSharp.Core.Operators.log
type 'T list = List<'T>

Full name: Microsoft.FSharp.Collections.list<_>
Fork me on GitHub